commit abf3eb72ea23e4590b264554fa43e9f028d5ed19
Author: Raphael Scholer <[email protected]>
Date:   Tue Mar 20 03:38:04 2018 +0100

    [st][hidecursor] Update for 0.8

diff --git a/st.suckless.org/patches/hidecursor/index.md 
b/st.suckless.org/patches/hidecursor/index.md
index 316dfabf..71eeec72 100644
--- a/st.suckless.org/patches/hidecursor/index.md
+++ b/st.suckless.org/patches/hidecursor/index.md
@@ -13,7 +13,7 @@ Download
 * [st-hidecursor-0.5.diff](st-hidecursor-0.5.diff)
 * [st-hidecursor-0.6.diff](st-hidecursor-0.6.diff)
 * [st-hidecursor-0.7.diff](st-hidecursor-0.7.diff)
-* [st-hidecursor-20170404-745c40f.diff](st-hidecursor-20170404-745c40f.diff)
+* [st-hidecursor-0.8.diff](st-hidecursor-0.8.diff)
 
 Authors
 -------
diff --git 
a/st.suckless.org/patches/hidecursor/st-hidecursor-20170404-745c40f.diff 
b/st.suckless.org/patches/hidecursor/st-hidecursor-0.8.diff
similarity index 85%
rename from 
st.suckless.org/patches/hidecursor/st-hidecursor-20170404-745c40f.diff
rename to st.suckless.org/patches/hidecursor/st-hidecursor-0.8.diff
index bf892bb2..26fb147b 100644
--- a/st.suckless.org/patches/hidecursor/st-hidecursor-20170404-745c40f.diff
+++ b/st.suckless.org/patches/hidecursor/st-hidecursor-0.8.diff
@@ -1,8 +1,8 @@
 diff --git a/x.c b/x.c
-index fbfd350..2f72214 100644
+index d43a529..9c9bcbd 100644
 --- a/x.c
 +++ b/x.c
-@@ -47,6 +47,11 @@ typedef struct {
+@@ -96,6 +96,11 @@ typedef struct {
        Draw draw;
        Visual *vis;
        XSetWindowAttributes attrs;
@@ -14,9 +14,9 @@ index fbfd350..2f72214 100644
        int scr;
        int isfixed; /* is fixed geometry? */
        int l, t; /* left and top offset */
-@@ -535,6 +540,13 @@ bmotion(XEvent *e)
- {
-       int oldey, oldex, oldsby, oldsey;
+@@ -411,6 +416,13 @@ bpress(XEvent *e)
+       MouseShortcut *ms;
+       int snap;
  
 +      if (!xw.pointerisvisible) {
 +              XDefineCursor(xw.dpy, xw.win, xw.vpointer);
@@ -28,8 +28,8 @@ index fbfd350..2f72214 100644
        if (IS_SET(MODE_MOUSE) && !(e->xbutton.state & forceselmod)) {
                mousereport(e);
                return;
-@@ -871,10 +883,10 @@ void
- xinit(void)
+@@ -994,10 +1006,10 @@ void
+ xinit(int cols, int rows)
  {
        XGCValues gcvalues;
 -      Cursor cursor;
@@ -40,7 +40,7 @@ index fbfd350..2f72214 100644
  
        if (!(xw.dpy = XOpenDisplay(NULL)))
                die("Can't open display
");
-@@ -947,8 +959,9 @@ xinit(void)
+@@ -1073,8 +1085,9 @@ xinit(int cols, int rows)
                die("XCreateIC failed. Could not obtain input method.
");
  
        /* white cursor, black outline */
@@ -52,7 +52,7 @@ index fbfd350..2f72214 100644
  
        if (XParseColor(xw.dpy, xw.cmap, colorname[mousefg], &xmousefg) == 0) {
                xmousefg.red   = 0xffff;
-@@ -962,7 +975,10 @@ xinit(void)
+@@ -1088,7 +1101,10 @@ xinit(int cols, int rows)
                xmousebg.blue  = 0x0000;
        }
  
@@ -64,7 +64,7 @@ index fbfd350..2f72214 100644
  
        xw.xembed = XInternAtom(xw.dpy, "_XEMBED", False);
        xw.wmdeletewin = XInternAtom(xw.dpy, "WM_DELETE_WINDOW", False);
-@@ -1462,6 +1478,8 @@ unmap(XEvent *ev)
+@@ -1571,6 +1587,8 @@ unmap(XEvent *ev)
  void
  xsetpointermotion(int set)
  {
@@ -73,7 +73,7 @@ index fbfd350..2f72214 100644
        MODBIT(xw.attrs.event_mask, set, PointerMotionMask);
        XChangeWindowAttributes(xw.dpy, xw.win, CWEventMask, &xw.attrs);
  }
-@@ -1521,6 +1539,12 @@ kpress(XEvent *ev)
+@@ -1689,6 +1707,12 @@ kpress(XEvent *ev)
        Status status;
        Shortcut *bp;
  


Reply via email to