Add cursor warping - dwm - My fork of dwm (frankenstein's monster)
(HTM) git clone git://git.drkhsh.at/dwm.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit eaca68fdfaba322e66b341fc6bb39d9b66b50363
(DIR) parent 39ee32b94709f4cec29ab712dd518f57e04dd941
(HTM) Author: drkhsh <me@drkhsh.at>
Date: Mon, 22 Feb 2021 13:40:13 +0100
Add cursor warping
Monitor switch only
https://dwm.suckless.org/patches/cursorwarp/
Diffstat:
M dwm.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/dwm.c b/dwm.c
@@ -1126,6 +1126,8 @@ focusmon(const Arg *arg)
unfocus(selmon->sel, 0);
selmon = m;
focus(NULL);
+ if (selmon->sel)
+ XWarpPointer(dpy, None, selmon->sel->win, 0, 0, 0, 0, selmon->sel->w/2, selmon->sel->h/2);
}
void