sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

dwm-focusmonmouse-6.2.diff (582B)


      1 From a56d910262f04c576760e4cdc7010f526cd0f56f Mon Sep 17 00:00:00 2001
      2 From: Filip Seman <seman.filip@gmail.com>
      3 Date: Sat, 28 Aug 2021 16:15:42 +0200
      4 Subject: [PATCH] Move mouse to selected monitor on focusmon
      5 
      6 ---
      7  dwm.c | 1 +
      8  1 file changed, 1 insertion(+)
      9 
     10 diff --git a/dwm.c b/dwm.c
     11 index 4465af1..254c933 100644
     12 --- a/dwm.c
     13 +++ b/dwm.c
     14 @@ -825,6 +825,7 @@ focusmon(const Arg *arg)
     15  	if ((m = dirtomon(arg->i)) == selmon)
     16  		return;
     17  	unfocus(selmon->sel, 0);
     18 +	XWarpPointer(dpy, None, m->barwin, 0, 0, 0, 0, m->mw / 2, m->mh / 2);
     19  	selmon = m;
     20  	focus(NULL);
     21  }
     22 -- 
     23 2.30.2
     24