mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 09:18:08 +02:00
...
This commit is contained in:
7
glfw/wl_window.c
vendored
7
glfw/wl_window.c
vendored
@@ -2837,10 +2837,11 @@ _glfwPlatformSetWindowBlur(_GLFWwindow *window, int blur_radius) {
|
|||||||
|
|
||||||
bool
|
bool
|
||||||
_glfwPlatformGrabKeyboard(bool grab) {
|
_glfwPlatformGrabKeyboard(bool grab) {
|
||||||
if (!_glfw.wl.keyboard_shortcuts_inhibit_manager) return false;
|
if (!_glfw.wl.keyboard_shortcuts_inhibit_manager) {
|
||||||
for (_GLFWwindow* window = _glfw.windowListHead; window; window = window->next) {
|
_glfwInputError(GLFW_PLATFORM_ERROR, "The Wayland compositor does not implement inhibit-keyboard-shortcuts, cannot grab keyboard");
|
||||||
inhibit_shortcuts_for(window, grab);
|
return false;
|
||||||
}
|
}
|
||||||
|
for (_GLFWwindow* window = _glfw.windowListHead; window; window = window->next) inhibit_shortcuts_for(window, grab);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user