[wiki] [sites] st/patches/hidecursor: fix the 0.8 version to re-enable cursor on bmotion || Ivan Delalande

From: <git_AT_suckless.org>
Date: Thu, 22 Mar 2018 07:24:04 +0100

commit 833ec8f70f99d109e91eead3cae791d524ff3b40
Author: Ivan Delalande <colona_AT_ycc.fr>
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
_AT_@ -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
 _AT_@ -96,6 +96,11 @@ typedef struct {
_AT_@ -14,10 +14,10 @@ index d43a529..9c9bcbd 100644
          int scr;
          int isfixed; /* is fixed geometry? */
          int l, t; /* left and top offset */
-_AT_@ -411,6 +416,13 @@ bpress(XEvent *e)
- MouseShortcut *ms;
- int snap;
-
+_AT_@ -649,6 +654,13 @@ brelease(XEvent *e)
+ void
+ bmotion(XEvent *e)
+ {
 + if (!xw.pointerisvisible) {
 + XDefineCursor(xw.dpy, xw.win, xw.vpointer);
 + xw.pointerisvisible = 1;
Received on Thu Mar 22 2018 - 07:24:04 CET

This archive was generated by hypermail 2.3.0 : Thu Mar 22 2018 - 07:24:21 CET