staticstatus: Adding note about systray pinning

This commit is contained in:
bakkeby 2020-06-10 12:08:37 +02:00
parent 164095db40
commit a5e74cd720
2 changed files with 3 additions and 1 deletions

2
dwm.c
View File

@ -1756,7 +1756,7 @@ drawbars(void)
Monitor *m; Monitor *m;
#if SYSTRAY_PATCH #if SYSTRAY_PATCH
if (showsystray) { if (showsystray && systraypinning == 0) {
/* Clear status bar to avoid artifacts beneath systray icons */ /* Clear status bar to avoid artifacts beneath systray icons */
drw_setscheme(drw, scheme[SchemeNorm]); drw_setscheme(drw, scheme[SchemeNorm]);
drw_rect(drw, 0, 0, selmon->ww, bh, 1, 1); drw_rect(drw, 0, 0, selmon->ww, bh, 1, 1);

View File

@ -512,6 +512,8 @@
/* This patch allows the status text to be fixed to the bar on a specific /* This patch allows the status text to be fixed to the bar on a specific
* monitor rather than being drawn on the focused monitor. * monitor rather than being drawn on the focused monitor.
* The statusallmons patch takes precedence over this patch. * 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/ * https://dwm.suckless.org/patches/staticstatus/
*/ */
#define STATICSTATUS_PATCH 0 #define STATICSTATUS_PATCH 0