fix: cursor not auto hide in overview

This commit is contained in:
DreamMaoMao 2026-06-15 09:53:34 +08:00
parent 4daab9e4d5
commit 2a9c38df1f

View file

@ -1760,7 +1760,12 @@ int32_t toggleoverview(const Arg *arg) {
if (selmon->isoverview) {
wlr_seat_pointer_clear_focus(seat);
wlr_cursor_set_xcursor(cursor, cursor_mgr, "default");
if (cursor_hidden) {
handlecursoractivity();
} else {
wlr_cursor_set_xcursor(cursor, cursor_mgr, "default");
}
wl_list_for_each(c, &clients, link) {
if (c && c->mon == selmon && !client_is_unmanaged(c) &&