[wiki] [sites] Add focusmonmouse patch for dwm || Filip Seman

From: <git_AT_suckless.org>
Date: Sat, 28 Aug 2021 19:47:29 +0200

commit 2c10057e6b6bbffd6b68cca2b35c5580ef537e82
Author: Filip Seman <seman.filip_AT_gmail.com>
Date: Sat Aug 28 19:47:13 2021 +0200

    Add focusmonmouse patch for dwm

diff --git a/dwm.suckless.org/patches/focusmonmouse/dwm-focusmonmouse-6.2.diff b/dwm.suckless.org/patches/focusmonmouse/dwm-focusmonmouse-6.2.diff
new file mode 100644
index 00000000..d8df9d29
--- /dev/null
+++ b/dwm.suckless.org/patches/focusmonmouse/dwm-focusmonmouse-6.2.diff
_AT_@ -0,0 +1,24 @@
+From a56d910262f04c576760e4cdc7010f526cd0f56f Mon Sep 17 00:00:00 2001
+From: Filip Seman <seman.filip_AT_gmail.com>
+Date: Sat, 28 Aug 2021 16:15:42 +0200
+Subject: [PATCH] Move mouse to selected monitor on focusmon
+
+---
+ dwm.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/dwm.c b/dwm.c
+index 4465af1..254c933 100644
+--- a/dwm.c
++++ b/dwm.c
+_AT_@ -825,6 +825,7 @@ focusmon(const Arg *arg)
+ if ((m = dirtomon(arg->i)) == selmon)
+ return;
+ unfocus(selmon->sel, 0);
++ XWarpPointer(dpy, None, m->barwin, 0, 0, 0, 0, m->mw / 2, m->mh / 2);
+ selmon = m;
+ focus(NULL);
+ }
+--
+2.30.2
+
diff --git a/dwm.suckless.org/patches/focusmonmouse/index.md b/dwm.suckless.org/patches/focusmonmouse/index.md
new file mode 100644
index 00000000..73faa4b2
--- /dev/null
+++ b/dwm.suckless.org/patches/focusmonmouse/index.md
_AT_@ -0,0 +1,14 @@
+focusmonmouse
+=============
+
+Description
+-----------
+Move mouse to selected monitor on focusmon.
+
+Download
+--------
+* [dwm-focusmonmouse-6.2.diff](dwm-focusmonmouse-6.2.diff)
+
+Author
+------
+* Filip Seman - <seman.filip_AT_gmail.com>
Received on Sat Aug 28 2021 - 19:47:29 CEST

This archive was generated by hypermail 2.3.0 : Sat Aug 28 2021 - 19:48:43 CEST