From 4d771a96082ab5ee43ad9c6eff424fb25fdcc40a Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 6 Nov 2020 16:05:44 +0100 Subject: Incomplete patch fix for hidecursor --- x.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/x.c b/x.c index 86b2224..81efafe 100644 --- a/x.c +++ b/x.c @@ -594,6 +594,12 @@ brelease(XEvent *e) void bmotion(XEvent *e) { + if (!xw.pointerisvisible) { + XDefineCursor(xw.dpy, xw.win, xw.vpointer); + xw.pointerisvisible = 1; + if (!IS_SET(MODE_MOUSEMANY)) + xsetpointermotion(0); + } if (IS_SET(MODE_MOUSE) && !(e->xbutton.state & forcemousemod)) { mousereport(e); return; -- cgit v1.2.3