diff options
| -rw-r--r-- | dwm.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -542,8 +542,12 @@ clientmessage(XEvent *e) setfullscreen(c, (cme->data.l[0] == 1 /* _NET_WM_STATE_ADD */ || (cme->data.l[0] == 2 /* _NET_WM_STATE_TOGGLE */ && !c->isfullscreen))); } else if (cme->message_type == netatom[NetActiveWindow]) { - if (c != selmon->sel && !c->isurgent) - seturgent(c, 1); + if (!ISVISIBLE(c)) { + c->mon->tagset[c->mon->seltags] = c->tags; + selmon = c->mon; + arrange(selmon); + } + focus(c); } } |
