sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 67622923d04ce31d532d4108d08b42b9f7cebe70
parent 76d591107765534268e3f7340e37a1cc95f54884
Author: Rodolfo Olivieri <rodolfo.olivieri3@gmail.com>
Date:   Fri, 14 Jan 2022 23:24:28 -0300

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

Diffstat:
Mdwm.suckless.org/patches/systray/dwm-systray-6.3.diff | 13++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/dwm.suckless.org/patches/systray/dwm-systray-6.3.diff b/dwm.suckless.org/patches/systray/dwm-systray-6.3.diff @@ -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 */ @@ -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 @@ -57,12 +57,27 @@ @@ -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++) @@ -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(); + } @@ -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) @@ -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);