aboutsummaryrefslogtreecommitdiff
path: root/patches/dwm-netactivewindow-switch-20260904-d84cff9.diff
diff options
context:
space:
mode:
authorKumar Damani <me@kumardamani.net>2026-09-05 02:04:28 +0000
committerKumar Damani <me@kumardamani.net>2026-09-05 02:04:28 +0000
commit696bb8357c3272c42c3a4ace12c712c620f24e15 (patch)
tree38302e31f7e7e34fd7c051b83b84124b81a372e7 /patches/dwm-netactivewindow-switch-20260904-d84cff9.diff
parentd84cff96293c0356873b6145478d3c8d87da10b8 (diff)
track netactivewindow patchHEADpatched
Diffstat (limited to 'patches/dwm-netactivewindow-switch-20260904-d84cff9.diff')
-rw-r--r--patches/dwm-netactivewindow-switch-20260904-d84cff9.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/dwm-netactivewindow-switch-20260904-d84cff9.diff b/patches/dwm-netactivewindow-switch-20260904-d84cff9.diff
new file mode 100644
index 0000000..9eed1db
--- /dev/null
+++ b/patches/dwm-netactivewindow-switch-20260904-d84cff9.diff
@@ -0,0 +1,19 @@
+diff --git a/dwm.c b/dwm.c
+index 534a4ea..3c3fc80 100644
+--- a/dwm.c
++++ b/dwm.c
+@@ -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);
+ }
+ }
+