mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
fix:miss change selmon when focus cross monitor
This commit is contained in:
parent
8bfbd0c546
commit
9bcb11202e
1 changed files with 5 additions and 0 deletions
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,
|
||||
false);
|
||||
}
|
||||
|
||||
if(c && !c->iskilling && c->mon) {
|
||||
selmon = c->mon;
|
||||
}
|
||||
|
||||
if (selmon) {
|
||||
selmon->prevsel = selmon->sel;
|
||||
selmon->sel = c;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue