summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-06-10 12:08:37 +0200
committerbakkeby <[email protected]>2020-06-10 12:08:37 +0200
commita5e74cd720e5eda517e12d7c7cd9a78fb6ab66e5 (patch)
tree69d31e7c3b0e271f0e6901a71e3e3bfe99c89b4c
parent164095db409973359c8072d989b3aa7c8216c55e (diff)
downloaddwm-flexipatch-a5e74cd720e5eda517e12d7c7cd9a78fb6ab66e5.tar.gz
dwm-flexipatch-a5e74cd720e5eda517e12d7c7cd9a78fb6ab66e5.zip
staticstatus: Adding note about systray pinning
-rw-r--r--dwm.c2
-rw-r--r--patches.def.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index df021b3..f001203 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1756,7 +1756,7 @@ drawbars(void)
Monitor *m;
#if SYSTRAY_PATCH
- if (showsystray) {
+ if (showsystray && systraypinning == 0) {
/* Clear status bar to avoid artifacts beneath systray icons */
drw_setscheme(drw, scheme[SchemeNorm]);
drw_rect(drw, 0, 0, selmon->ww, bh, 1, 1);
diff --git a/patches.def.h b/patches.def.h
index b8945ab..8af2b9d 100644
--- a/patches.def.h
+++ b/patches.def.h
@@ -512,6 +512,8 @@
/* This patch allows the status text to be fixed to the bar on a specific
* monitor rather than being drawn on the focused monitor.
* The statusallmons patch takes precedence over this patch.
+ * NB: If used together with the systray patch then consider setting
+ * systraypinning to statmonval+1.
* https://dwm.suckless.org/patches/staticstatus/
*/
#define STATICSTATUS_PATCH 0