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 eaf4e55ca5
commit c3aa7b691d
3 changed files with 13 additions and 1 deletions

View file

@ -4158,6 +4158,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++)