mirror of
https://github.com/swaywm/sway.git
synced 2025-01-12 07:16:32 +01:00
hide_cursor when-typing: do not hide cursor when buttons are pressed
This was already done for timeout based hiding. Now the hide_cursor when-typing setting will also not hide the cursor unless all buttons are released.
This commit is contained in:
parent
fd3b643d15
commit
2d1391565b
1 changed files with 4 additions and 1 deletions
|
@ -230,7 +230,10 @@ void cursor_notify_key_press(struct sway_cursor *cursor) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cursor->hide_when_typing == HIDE_WHEN_TYPING_ENABLE) {
|
if (cursor->hide_when_typing == HIDE_WHEN_TYPING_ENABLE) {
|
||||||
cursor_hide(cursor);
|
if (cursor->pressed_button_count == 0) {
|
||||||
|
// Do not hide cursor unless all buttons are released
|
||||||
|
cursor_hide(cursor);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue