opt: optimize selmon update

This commit is contained in:
DreamMaoMao 2025-03-25 21:26:10 +08:00
parent 20bc31d3c9
commit 948eb7bb32

View file

@ -3131,10 +3131,6 @@ void focusclient(Client *c, int lift) {
if (c && client_surface(c) == old_keyboard_focus_surface)
return;
if (c && c->mon && c->mon != selmon) {
selmon = c->mon;
}
if (selmon && selmon->sel && selmon->sel->foreign_toplevel) {
wlr_foreign_toplevel_handle_v1_set_activated(selmon->sel->foreign_toplevel,
false);