[wiki] [sites] [st][hidecursor] Update for 0.8 || Raphael Scholer

From: <git_AT_suckless.org>
Date: Tue, 20 Mar 2018 03:39:22 +0100

commit abf3eb72ea23e4590b264554fa43e9f028d5ed19
Author: Raphael Scholer <rascholer_AT_gmail.com>
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
_AT_@ -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
_AT_@ -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
-_AT_@ -47,6 +47,11 @@ typedef struct {
+_AT_@ -96,6 +96,11 @@ typedef struct {
          Draw draw;
          Visual *vis;
          XSetWindowAttributes attrs;
_AT_@ -14,9 +14,9 @@ index fbfd350..2f72214 100644
          int scr;
          int isfixed; /* is fixed geometry? */
          int l, t; /* left and top offset */
-_AT_@ -535,6 +540,13 @@ bmotion(XEvent *e)
- {
- int oldey, oldex, oldsby, oldsey;
+_AT_@ -411,6 +416,13 @@ bpress(XEvent *e)
+ MouseShortcut *ms;
+ int snap;
  
 + if (!xw.pointerisvisible) {
 + XDefineCursor(xw.dpy, xw.win, xw.vpointer);
_AT_@ -28,8 +28,8 @@ index fbfd350..2f72214 100644
          if (IS_SET(MODE_MOUSE) && !(e->xbutton.state & forceselmod)) {
                  mousereport(e);
                  return;
-_AT_@ -871,10 +883,10 @@ void
- xinit(void)
+_AT_@ -994,10 +1006,10 @@ void
+ xinit(int cols, int rows)
  {
          XGCValues gcvalues;
 - Cursor cursor;
_AT_@ -40,7 +40,7 @@ index fbfd350..2f72214 100644
  
          if (!(xw.dpy = XOpenDisplay(NULL)))
                  die("Can't open display
");
-_AT_@ -947,8 +959,9 @@ xinit(void)
+_AT_@ -1073,8 +1085,9 @@ xinit(int cols, int rows)
                  die("XCreateIC failed. Could not obtain input method.
");
  
          /* white cursor, black outline */
_AT_@ -52,7 +52,7 @@ index fbfd350..2f72214 100644
  
          if (XParseColor(xw.dpy, xw.cmap, colorname[mousefg], &xmousefg) == 0) {
                  xmousefg.red = 0xffff;
-_AT_@ -962,7 +975,10 @@ xinit(void)
+_AT_@ -1088,7 +1101,10 @@ xinit(int cols, int rows)
                  xmousebg.blue = 0x0000;
          }
  
_AT_@ -64,7 +64,7 @@ index fbfd350..2f72214 100644
  
          xw.xembed = XInternAtom(xw.dpy, "_XEMBED", False);
          xw.wmdeletewin = XInternAtom(xw.dpy, "WM_DELETE_WINDOW", False);
-_AT_@ -1462,6 +1478,8 @@ unmap(XEvent *ev)
+_AT_@ -1571,6 +1587,8 @@ unmap(XEvent *ev)
  void
  xsetpointermotion(int set)
  {
_AT_@ -73,7 +73,7 @@ index fbfd350..2f72214 100644
          MODBIT(xw.attrs.event_mask, set, PointerMotionMask);
          XChangeWindowAttributes(xw.dpy, xw.win, CWEventMask, &xw.attrs);
  }
-_AT_@ -1521,6 +1539,12 @@ kpress(XEvent *ev)
+_AT_@ -1689,6 +1707,12 @@ kpress(XEvent *ev)
          Status status;
          Shortcut *bp;
  
Received on Tue Mar 20 2018 - 03:39:22 CET

This archive was generated by hypermail 2.3.0 : Tue Mar 20 2018 - 03:48:20 CET