commit 833ec8f70f99d109e91eead3cae791d524ff3b40
parent b7a9f00ae311572a41d92af211bd3621cade0ca3
Author: Ivan Delalande <colona@ycc.fr>
Date: Wed, 21 Mar 2018 23:20:11 -0700
st/patches/hidecursor: fix the 0.8 version to re-enable cursor on bmotion
Don't trust patch fuzz.
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git 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;