feat: add hide cursor on keypress option (#871)

This commit is contained in:
Osama Ragab 2026-06-07 16:30:22 +03:00 committed by DreamMaoMao
parent ccb58a4f1a
commit a429420b73
3 changed files with 13 additions and 1 deletions

View file

@ -4206,6 +4206,11 @@ void keypress(struct wl_listener *listener, void *data) {
}
}
if (config.cursor_hide_on_keypress && !cursor_hidden &&
event->state == WL_KEYBOARD_KEY_STATE_PRESSED) {
hidecursor(NULL);
}
/* On _press_ if there is no active screen locker,
* attempt to process a compositor keybinding. */
for (i = 0; i < nsyms; i++)