From: A-Larsen Date: Tue, 13 Oct 2026 03:55:47 +0000 (-0400) Subject: launch applications, switch to, and warp pointer X-Git-Url: https://nyquistdev.net/git/?a=commitdiff_plain;h=ce79220508e35d8f84964ab49a2f6e6d1b3f56ee;p=dwm-config.git launch applications, switch to, and warp pointer --- diff --git a/dwm b/dwm index 6eb49b0..7fee6f5 100755 Binary files a/dwm and b/dwm differ diff --git a/dwm.c b/dwm.c index da8bafc..b093df8 100644 --- a/dwm.c +++ b/dwm.c @@ -2318,6 +2318,10 @@ manage(Window w, XWindowAttributes *wa) if (c->explicit_tags && !(c->tags & selmon->tagset[selmon->seltags])) { view(&(Arg){ .ui = c->tags }); } + /* Warp mouse to the center of the target monitor */ + XWarpPointer(dpy, None, root, 0, 0, 0, 0, + c->mon->wx + c->mon->ww / 2, + c->mon->wy + c->mon->wh / 2); } /* --------------------------------------------- */ diff --git a/dwm.o b/dwm.o index b327e60..4bcac9d 100644 Binary files a/dwm.o and b/dwm.o differ