summaryrefslogtreecommitdiff
path: root/dwm/dwm.c
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-05-04 22:53:57 -0400
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-05-04 22:53:57 -0400
commite5c22a1c059e63e65b4a8820f1751879f735a09f (patch)
tree8bf4b3f7f41a6b5ecc5038795983d046eab78e0e /dwm/dwm.c
parent55c6c56886efe76ca4783d84e9779a8783643422 (diff)
Unpatch cursor warp
Diffstat (limited to 'dwm/dwm.c')
-rw-r--r--dwm/dwm.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/dwm/dwm.c b/dwm/dwm.c
index 1d9273e..f265f18 100644
--- a/dwm/dwm.c
+++ b/dwm/dwm.c
@@ -1216,8 +1216,6 @@ focusmon(const Arg *arg)
unfocus(selmon->sel, 0);
selmon = m;
focus(NULL);
- if (selmon->sel)
- XWarpPointer(dpy, None, selmon->sel->win, 0, 0, 0, 0, selmon->sel->w/2, selmon->sel->h/2);
}
void
@@ -1234,7 +1232,6 @@ focusstack(const Arg *arg)
;
focus(c ? c : p);
restack(selmon);
- XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w/2, c->h/2);
}
Atom getatomprop(Client *c, Atom prop)
@@ -1610,8 +1607,6 @@ manage(Window w, XWindowAttributes *wa)
if (term)
swallow(term, c);
arrange(c->mon);
- if (c && c->mon == selmon)
- XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w/2, c->h/2);
focus(NULL);
}
@@ -2651,9 +2646,6 @@ unmanage(Client *c, int destroyed)
arrange(m);
focus(NULL);
updateclientlist();
- if (m == selmon && m->sel)
- XWarpPointer(dpy, None, m->sel->win, 0, 0, 0, 0,
- m->sel->w/2, m->sel->h/2);
}
}