Merge pull request #1025 from osamamragab/main
Some checks failed
Sync website / sync-website (push) Has been cancelled
Sync wiki / sync-wiki (push) Has been cancelled

feat: add hide cursor on keypress option (#871)
This commit is contained in:
DreamMaoMao 2026-06-08 13:28:07 +08:00
commit b8fa9a3043
3 changed files with 13 additions and 1 deletions

View file

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