sites

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

dwm-cursorwarp-stackonly-20210222-61bb8b2.diff (499B)


      1 From 1e4936416fa5517fe447e3388e1d44c913e29f56 Mon Sep 17 00:00:00 2001
      2 From: Markus Dam <markus.dam123@gmail.com>
      3 Date: Mon, 22 Feb 2021 13:40:13 +0100
      4 Subject: [PATCH] Add cursor warping
      5 
      6 ---
      7  dwm.c | 3 +++
      8  1 file changed, 3 insertions(+)
      9 
     10 diff --git a/dwm.c b/dwm.c
     11 index 331a309..c80ef8a 100644
     12 --- a/dwm.c
     13 +++ b/dwm.c
     14 @@ -906,6 +908,7 @@ focusstack(const Arg *arg)
     15  	if (c) {
     16  		focus(c);
     17  		restack(selmon);
     18 +		XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w/2, c->h/2);
     19  	}
     20  }
     21  
     22 -- 
     23 2.30.1
     24