[wiki] [sites] [dwm][patch][systray] Fix whitespace warnings in diff || Rodolfo Olivieri

From: <git_AT_suckless.org>
Date: Sat, 15 Jan 2022 03:27:06 +0100

commit 67622923d04ce31d532d4108d08b42b9f7cebe70
Author: Rodolfo Olivieri <rodolfo.olivieri3_AT_gmail.com>
Date: Fri Jan 14 23:24:28 2022 -0300

    [dwm][patch][systray] Fix whitespace warnings in diff

diff --git a/dwm.suckless.org/patches/systray/dwm-systray-6.3.diff b/dwm.suckless.org/patches/systray/dwm-systray-6.3.diff
index e17c031f..6dbd5da6 100644
--- a/dwm.suckless.org/patches/systray/dwm-systray-6.3.diff
+++ b/dwm.suckless.org/patches/systray/dwm-systray-6.3.diff
_AT_@ -9,7 +9,7 @@ index a2ac963..4be4c06 100644
 -static const unsigned int snap = 32; /* snap pixel */
 -static const int showbar = 1; /* 0 means no bar */
 -static const int topbar = 1; /* 0 means bottom bar */
-+static const unsigned int snap = 32; /* snap pixel */:wq
++static const unsigned int snap = 32; /* snap pixel */
 +static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */
 +static const unsigned int systrayonleft = 0; /* 0: systray in the right corner, >0: systray on left of status text */
 +static const unsigned int systrayspacing = 2; /* systray spacing */
_AT_@ -32,7 +32,7 @@ index a2ac963..4be4c06 100644
          { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
          { ClkClientWin, MODKEY, Button1, movemouse, {0} },
 diff --git a/dwm.c b/dwm.c
-index a96f33c..b241aee 100644
+index a96f33c..941c1c0 100644
 --- a/dwm.c
 +++ b/dwm.c
 _AT_@ -57,12 +57,27 @@
_AT_@ -166,7 +166,7 @@ index a96f33c..b241aee 100644
 + XDestroyWindow(dpy, systray->win);
 + free(systray);
 + }
-+
++
 + for (i = 0; i < CurLast; i++)
                  drw_cur_free(drw, cursor[i]);
          for (i = 0; i < LENGTH(colors); i++)
_AT_@ -303,9 +303,8 @@ index a96f33c..b241aee 100644
          XExposeEvent *ev = &e->xexpose;
  
 - if (ev->count == 0 && (m = wintomon(ev->window)))
-- drawbar(m);
 + if (ev->count == 0 && (m = wintomon(ev->window))) {
-+ drawbar(m);
+ drawbar(m);
 + if (m == selmon)
 + updatesystray();
 + }
_AT_@ -387,7 +386,7 @@ index a96f33c..b241aee 100644
 + resizebarwin(selmon);
 + updatesystray();
 + }
-+
++
 + if ((ev->window == root) && (ev->atom == XA_WM_NAME))
                  updatestatus();
          else if (ev->state == PropertyDelete)
_AT_@ -511,7 +510,7 @@ index a96f33c..b241aee 100644
          netatom[NetActiveWindow] = XInternAtom(dpy, "_NET_ACTIVE_WINDOW", False);
 - netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False);
 - netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False);
-+ netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False);
++ netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False);
 + netatom[NetSystemTray] = XInternAtom(dpy, "_NET_SYSTEM_TRAY_S0", False);
 + netatom[NetSystemTrayOP] = XInternAtom(dpy, "_NET_SYSTEM_TRAY_OPCODE", False);
 + netatom[NetSystemTrayOrientation] = XInternAtom(dpy, "_NET_SYSTEM_TRAY_ORIENTATION", False);
Received on Sat Jan 15 2022 - 03:27:06 CET

This archive was generated by hypermail 2.3.0 : Sat Jan 15 2022 - 03:36:45 CET