mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 16:37:27 +00:00
...
This commit is contained in:
parent
95f5e9293e
commit
abc9b1fc48
1 changed files with 4 additions and 3 deletions
7
glfw/wl_window.c
vendored
7
glfw/wl_window.c
vendored
|
|
@ -2837,10 +2837,11 @@ _glfwPlatformSetWindowBlur(_GLFWwindow *window, int blur_radius) {
|
|||
|
||||
bool
|
||||
_glfwPlatformGrabKeyboard(bool grab) {
|
||||
if (!_glfw.wl.keyboard_shortcuts_inhibit_manager) return false;
|
||||
for (_GLFWwindow* window = _glfw.windowListHead; window; window = window->next) {
|
||||
inhibit_shortcuts_for(window, grab);
|
||||
if (!_glfw.wl.keyboard_shortcuts_inhibit_manager) {
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR, "The Wayland compositor does not implement inhibit-keyboard-shortcuts, cannot grab keyboard");
|
||||
return false;
|
||||
}
|
||||
for (_GLFWwindow* window = _glfw.windowListHead; window; window = window->next) inhibit_shortcuts_for(window, grab);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue