diff options
| author | Kumar Damani <me@kumardamani.net> | 2026-09-05 01:55:22 +0000 |
|---|---|---|
| committer | Kumar Damani <me@kumardamani.net> | 2026-09-05 01:55:22 +0000 |
| commit | d84cff96293c0356873b6145478d3c8d87da10b8 (patch) | |
| tree | 86ad0e5f6cb7e6268d9063b7c8d1d58f7e078a38 | |
| parent | c8d3b4fb88f97a0e2e98a8240c7e6227a34ada27 (diff) | |
net active window switches to window
| -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); } } |
