monitorwarp: Warp cursor to empty tags too - 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 e99f9c8304c73886b85771ccc20f28dc167f6a31
 (DIR) parent bbcb510e451e8db65d6cd8e1f52bf97ce5c0d4e1
 (HTM) Author: drkhsh <me@drkhsh.at>
       Date:   Mon, 30 Jan 2023 23:10:52 +0100
       
       monitorwarp: Warp cursor to empty tags too
       
       Diffstat:
         M dwm.c                               |       2 ++
       
       1 file changed, 2 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/dwm.c b/dwm.c
       @@ -1178,6 +1178,8 @@ focusmon(const Arg *arg)
                focus(NULL);
                if (selmon->sel)
                        XWarpPointer(dpy, None, selmon->sel->win, 0, 0, 0, 0, selmon->sel->w/2, selmon->sel->h/2);
       +        else
       +                XWarpPointer(dpy, None, root, 0, 0, 0, 0, selmon->wx + selmon->ww/2, selmon->wy + selmon->wh/2);
        }
        
        void