opt: optimize focus change when change monitor

This commit is contained in:
DreamMaoMao 2025-12-04 09:58:16 +08:00
parent 01b03dae88
commit c0be8fd176
2 changed files with 10 additions and 8 deletions

View file

@ -202,6 +202,7 @@ int focusmon(const Arg *arg) {
selmon->sel = NULL;
wlr_seat_pointer_notify_clear_focus(seat);
wlr_seat_keyboard_notify_clear_focus(seat);
focusclient(NULL, 0);
} else
focusclient(c, 1);