[dwm][patch] statusallmons - Update to 6.5 - sites - public wiki contents of suckless.org
 (HTM) git clone git://git.suckless.org/sites
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit 6560e758809f4ba42a2dac35d7e74ed5ceea6cb5
 (DIR) parent 27e83c3b4eef48136b72c6a4ced5e628fef09706
 (HTM) Author: Bang Lee <qusicx@gmail.com>
       Date:   Thu, 22 May 2025 14:12:51 -0700
       
       [dwm][patch] statusallmons - Update to 6.5
       
       Diffstat:
         A dwm.suckless.org/patches/statusall… |      38 +++++++++++++++++++++++++++++++
         M dwm.suckless.org/patches/statusall… |       2 ++
       
       2 files changed, 40 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/dwm.suckless.org/patches/statusallmons/dwm-statusallmons-6.5.diff b/dwm.suckless.org/patches/statusallmons/dwm-statusallmons-6.5.diff
       @@ -0,0 +1,38 @@
       +From 8b5466b921242f0c83376c525d4a20b100a405f8 Mon Sep 17 00:00:00 2001
       +From: Bang Lee <qusicx@gmail.com>
       +Date: Thu, 22 May 2025 14:05:36 -0700
       +Subject: [PATCH] statusbar on all monitors
       +
       +---
       + dwm.c | 6 ++++--
       + 1 file changed, 4 insertions(+), 2 deletions(-)
       +
       +diff --git a/dwm.c b/dwm.c
       +index 2829160..725e68b 100644
       +--- a/dwm.c
       ++++ b/dwm.c
       +@@ -707,7 +707,7 @@ drawbar(Monitor *m)
       +                 return;
       + 
       +         /* draw status first so it can be overdrawn by tags later */
       +-        if (m == selmon) { /* status is only drawn on selected monitor */
       ++        if (m == selmon || 1) { /* status is only drawn on selected monitor */
       +                 drw_setscheme(drw, scheme[SchemeNorm]);
       +                 tw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
       +                 drw_text(drw, m->ww - tw, 0, tw, bh, 0, stext, 0);
       +@@ -2006,9 +2006,11 @@ updatesizehints(Client *c)
       + void
       + updatestatus(void)
       + {
       ++        Monitor* m;
       +         if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext)))
       +                 strcpy(stext, "dwm-"VERSION);
       +-        drawbar(selmon);
       ++        for(m = mons; m; m = m->next)
       ++                drawbar(selmon);
       + }
       + 
       + void
       +-- 
       +2.49.0
       +
 (DIR) diff --git a/dwm.suckless.org/patches/statusallmons/index.md b/dwm.suckless.org/patches/statusallmons/index.md
       @@ -7,6 +7,7 @@ This patch draws and updates the statusbar on all monitors.
        
        Download
        --------
       +* [dwm-statusallmons-6.5.diff](dwm-statusallmons-6.5.diff)
        * [dwm-statusallmons-6.2.diff](dwm-statusallmons-6.2.diff)
        * [dwm-statusallmons-20160731-56a31dc.diff](dwm-statusallmons-20160731-56a31dc.diff)
        * [dwm-6.1-statusallmons.diff](dwm-6.1-statusallmons.diff) (1026b) (20140209)
       @@ -18,3 +19,4 @@ Author
        * Pascal Wittmann - <mail@pascal-wittmann.de>
        * Updated by Jan Christoph Ebersbach - <jceb@e-jc.de>
        * Updated to 6.2 by Tuxway Suckless - <tuxway+suckless@posteo.de>
       +* Updated to 6.5 by Bang Lee - <qusicx@gmail.com>