GHOST/Wayland: remove exception if wl_keyboard_listener::keymap fails

This would cause Blender to exist, log the message & return instead.
This commit is contained in:
Campbell Barton
2023-09-06 16:16:58 +10:00
parent d06bd5d1f0
commit 4dd5385807

View File

@@ -3736,7 +3736,8 @@ static void keyboard_handle_keymap(void *data,
char *map_str = static_cast<char *>(mmap(nullptr, size, PROT_READ, MAP_PRIVATE, fd, 0));
if (map_str == MAP_FAILED) {
close(fd);
throw std::runtime_error("keymap mmap failed: " + std::string(std::strerror(errno)));
CLOG_INFO(LOG, 2, "keymap mmap failed: %s", std::strerror(errno));
return;
}
xkb_keymap *keymap = xkb_keymap_new_from_string(