fix:miss change selmon when focus cross monitor
This commit is contained in:
5
maomao.c
5
maomao.c
@@ -3283,6 +3283,11 @@ void focusclient(Client *c, int lift) {
|
|||||||
wlr_foreign_toplevel_handle_v1_set_activated(selmon->sel->foreign_toplevel,
|
wlr_foreign_toplevel_handle_v1_set_activated(selmon->sel->foreign_toplevel,
|
||||||
false);
|
false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(c && !c->iskilling && c->mon) {
|
||||||
|
selmon = c->mon;
|
||||||
|
}
|
||||||
|
|
||||||
if (selmon) {
|
if (selmon) {
|
||||||
selmon->prevsel = selmon->sel;
|
selmon->prevsel = selmon->sel;
|
||||||
selmon->sel = c;
|
selmon->sel = c;
|
||||||
|
|||||||
Reference in New Issue
Block a user