summaryrefslogtreecommitdiff
path: root/dwm
diff options
context:
space:
mode:
Diffstat (limited to 'dwm')
-rw-r--r--dwm/my-no-focus-follows-mouse.diff37
-rwxr-xr-xdwm/setup.sh1
2 files changed, 38 insertions, 0 deletions
diff --git a/dwm/my-no-focus-follows-mouse.diff b/dwm/my-no-focus-follows-mouse.diff
new file mode 100644
index 0000000..aefcb3c
--- /dev/null
+++ b/dwm/my-no-focus-follows-mouse.diff
@@ -0,0 +1,37 @@
+diff -ruN ../dwm-clean/dwm.c ./dwm.c
+--- ../dwm-clean/dwm.c 2025-08-09 06:00:55.740267680 -0700
++++ ./dwm.c 2025-12-03 19:36:27.601767290 -0800
+@@ -248,7 +248,6 @@
+ [ConfigureRequest] = configurerequest,
+ [ConfigureNotify] = configurenotify,
+ [DestroyNotify] = destroynotify,
+- [EnterNotify] = enternotify,
+ [Expose] = expose,
+ [FocusIn] = focusin,
+ [KeyPress] = keypress,
+@@ -757,25 +756,6 @@
+ }
+
+ void
+-enternotify(XEvent *e)
+-{
+- Client *c;
+- Monitor *m;
+- XCrossingEvent *ev = &e->xcrossing;
+-
+- if ((ev->mode != NotifyNormal || ev->detail == NotifyInferior) && ev->window != root)
+- return;
+- c = wintoclient(ev->window);
+- m = c ? c->mon : wintomon(ev->window);
+- if (m != selmon) {
+- unfocus(selmon->sel, 1);
+- selmon = m;
+- } else if (!c || c == selmon->sel)
+- return;
+- focus(c);
+-}
+-
+-void
+ expose(XEvent *e)
+ {
+ Monitor *m;
diff --git a/dwm/setup.sh b/dwm/setup.sh
index 01e3f4a..80d1c20 100755
--- a/dwm/setup.sh
+++ b/dwm/setup.sh
@@ -6,6 +6,7 @@ set -x
tar -xzf dwm-6.6.tar.gz
cd dwm-6.6
patch <../my.diff
+patch <../my-no-focus-follows-mouse.diff
patch <../dwm-movestack-6.6.diff
patch <../dwm-quitprompt-20220718-6613d9f.diff
patch <../dwm-warp-6.4.diff