diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 3d04826cd..05f94175b 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -230,7 +230,10 @@ void cursor_notify_key_press(struct sway_cursor *cursor) { } 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); + } } }