summaryrefslogtreecommitdiff
path: root/dwm/patches/dwm-preventfocusshift-20240831-6.5.diff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-03-08 15:21:28 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-03-08 15:21:28 +0900
commit4437d5b3c3eea76f6e2b0fd4a2ba21c02a098aeb (patch)
treee8dcb20bf144aacf88f93b012dccacdeb08015cd /dwm/patches/dwm-preventfocusshift-20240831-6.5.diff
parentc2b06f0d5795a789f4ddab459179ff89aedfee98 (diff)
updates
Diffstat (limited to 'dwm/patches/dwm-preventfocusshift-20240831-6.5.diff')
-rw-r--r--dwm/patches/dwm-preventfocusshift-20240831-6.5.diff24
1 files changed, 24 insertions, 0 deletions
diff --git a/dwm/patches/dwm-preventfocusshift-20240831-6.5.diff b/dwm/patches/dwm-preventfocusshift-20240831-6.5.diff
new file mode 100644
index 0000000..a779208
--- /dev/null
+++ b/dwm/patches/dwm-preventfocusshift-20240831-6.5.diff
@@ -0,0 +1,24 @@
+# From 554f5a8a2205a7c52280babf5685462d8991b038 Mon Sep 17 00:00:00 2001
+# From: Suleyman Farajli <suleyman@farajli.net>
+# Date: Sat, 31 Aug 2024 13:34:58 +0400
+# Subject: [PATCH] prevent focus shifting when a window is spawned in fullscreen
+#
+# ---
+# dwm.c | 2 ++
+# 1 file changed, 2 insertions(+)
+
+diff --git a/dwm.c b/dwm.c
+index f1d86b2..31b5d07 100644
+--- a/dwm.c
++++ b/dwm.c
+@@ -1080,6 +1080,8 @@ manage(Window w, XWindowAttributes *wa)
+ (unsigned char *) &(c->win), 1);
+ XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */
+ setclientstate(c, NormalState);
++ if(selmon->sel && selmon->sel->isfullscreen && !c->isfloating)
++ setfullscreen(selmon->sel, 0);
+ if (c->mon == selmon)
+ unfocus(selmon->sel, 0);
+ c->mon->sel = c;
+--
+2.44.2