commit 833ec8f70f99d109e91eead3cae791d524ff3b40
Author: Ivan Delalande <[email protected]>
Date: Wed Mar 21 23:20:11 2018 -0700
st/patches/hidecursor: fix the 0.8 version to re-enable cursor on bmotion
Don't trust patch fuzz.
diff --git a/st.suckless.org/patches/hidecursor/st-hidecursor-0.8.diff
b/st.suckless.org/patches/hidecursor/st-hidecursor-0.8.diff
index 26fb147b..94e9781b 100644
--- a/st.suckless.org/patches/hidecursor/st-hidecursor-0.8.diff
+++ b/st.suckless.org/patches/hidecursor/st-hidecursor-0.8.diff
@@ -1,5 +1,5 @@
diff --git a/x.c b/x.c
-index d43a529..9c9bcbd 100644
+index d43a529..599696f 100644
--- a/x.c
+++ b/x.c
@@ -96,6 +96,11 @@ typedef struct {
@@ -14,10 +14,10 @@ index d43a529..9c9bcbd 100644
int scr;
int isfixed; /* is fixed geometry? */
int l, t; /* left and top offset */
-@@ -411,6 +416,13 @@ bpress(XEvent *e)
- MouseShortcut *ms;
- int snap;
-
+@@ -649,6 +654,13 @@ brelease(XEvent *e)
+ void
+ bmotion(XEvent *e)
+ {
+ if (!xw.pointerisvisible) {
+ XDefineCursor(xw.dpy, xw.win, xw.vpointer);
+ xw.pointerisvisible = 1;