mirror of
https://github.com/swaywm/sway.git
synced 2025-01-12 15:26:24 +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,8 +230,11 @@ 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) {
|
||||||
|
if (cursor->pressed_button_count == 0) {
|
||||||
|
// Do not hide cursor unless all buttons are released
|
||||||
cursor_hide(cursor);
|
cursor_hide(cursor);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static enum sway_input_idle_source idle_source_from_device(
|
static enum sway_input_idle_source idle_source_from_device(
|
||||||
|
|
Loading…
Reference in a new issue