fix:miss change selmon when focus cross monitor

This commit is contained in:
DreamMaoMao 2025-04-03 12:24:39 +08:00
parent 8bfbd0c546
commit 9bcb11202e

View file

@ -3283,6 +3283,11 @@ void focusclient(Client *c, int lift) {
wlr_foreign_toplevel_handle_v1_set_activated(selmon->sel->foreign_toplevel,
false);
}
if(c && !c->iskilling && c->mon) {
selmon = c->mon;
}
if (selmon) {
selmon->prevsel = selmon->sel;
selmon->sel = c;