mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-14 14:33:10 -04:00
Merge pull request #1025 from osamamragab/main
feat: add hide cursor on keypress option (#871)
This commit is contained in:
commit
b8fa9a3043
3 changed files with 13 additions and 1 deletions
|
|
@ -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++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue