diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-06 16:05:44 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-06 16:05:44 +0100 |
commit | 4d771a96082ab5ee43ad9c6eff424fb25fdcc40a (patch) | |
tree | 66cf948ae98830850ac380cf44b21be64893ffb7 | |
parent | Update (diff) | |
download | st-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |