monitorwarp: Warp cursor to empty tags too - dwm - my version of dwm (frankenstein's monster)
 (HTM) git clone https://git.drkhsh.at/dwm.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit e1cd392dba8af674f3a03a2ec97fd985e7ab3b79
 (DIR) parent 77d5214d4d85ad975a5128b2f41006e20e37a969
 (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
       @@ -1139,6 +1139,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