about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAcid Bong <acid-bong@cock.lt>2022-10-19 22:43:26 +0300
committerAcid Bong <acid-bong@cock.lt>2022-10-19 22:43:26 +0300
commita8ee855f2efca6123fbf15180d4c4dc1fc662e2e (patch)
treef665d500e8f968b527a2f7de8be8ecbc0ae5a1ff
parentd106e4c852402c25c6fa9f81b286dfa747886f3b (diff)
downloaddwm-a8ee855f2efca6123fbf15180d4c4dc1fc662e2e.tar.gz
cursowarp: disabled on window spawn and kill
-rw-r--r--dwm.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/dwm.c b/dwm.c
index 412f04f..a362977 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1186,8 +1186,6 @@ manage(Window w, XWindowAttributes *wa)
 	c->mon->sel = c;
 	arrange(c->mon);
 	XMapWindow(dpy, c->win);
-	if (c && c->mon == selmon)
-		XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w/2, c->h/2);
 	focus(NULL);
 }
 
@@ -1995,9 +1993,6 @@ unmanage(Client *c, int destroyed)
 	focus(NULL);
 	updateclientlist();
 	arrange(m);
-	if (m == selmon && m->sel)
-		XWarpPointer(dpy, None, m->sel->win, 0, 0, 0, 0,
-		             m->sel->w/2, m->sel->h/2);
 }
 
 void