aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-06 16:05:44 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-06 16:05:44 +0100
commit4d771a96082ab5ee43ad9c6eff424fb25fdcc40a (patch)
tree66cf948ae98830850ac380cf44b21be64893ffb7
parentUpdate (diff)
downloadst-4d771a96082ab5ee43ad9c6eff424fb25fdcc40a.tar.gz
st-4d771a96082ab5ee43ad9c6eff424fb25fdcc40a.tar.bz2
st-4d771a96082ab5ee43ad9c6eff424fb25fdcc40a.tar.xz
st-4d771a96082ab5ee43ad9c6eff424fb25fdcc40a.tar.zst
st-4d771a96082ab5ee43ad9c6eff424fb25fdcc40a.zip
Incomplete patch fix for hidecursor
-rw-r--r--x.c6
1 files changed, 6 insertions, 0 deletions
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;