fix (barconfig): segfault when opening clients

This commit is contained in:
Rumen 2025-10-24 12:08:45 +02:00
parent 09e674f5fe
commit 71eb4f8cf4
No known key found for this signature in database
2 changed files with 5 additions and 6 deletions

View File

@ -13,9 +13,7 @@ display on the bar and in which order:
**NOTE**: This patch is a dwl port of the [original](https://dwm.suckless.org/patches/barconfig/) barconfig patch for dwm.
### Known Issues With Patch
Putting the tags after the '|' separator prevents tags 1 to 7 from being displayed. I do not have any plans
to look into this, as I ported this patch for the sole purpose of having the option to omit the layout symbol from
the bar.
Changing the location of the tags breaks the tag button presses (the buttons expect the click in the usual location of the tags). I do not have any plans to look into this, as I ported this patch for the sole purpose of having the option to omit the layout symbol from the bar.
### Download
- [0.8](/dwl/dwl-patches/raw/branch/main/patches/barconfig/barconfig.patch)

View File

@ -49,7 +49,7 @@ index bf340d8..f0d72cf 100644
Client *c;
Buffer *buf;
@@ -1581,48 +1581,98 @@ drawbar(Monitor *m)
@@ -1581,48 +1581,99 @@ drawbar(Monitor *m)
if (!(buf = bufmon(m)))
return;
@ -152,9 +152,10 @@ index bf340d8..f0d72cf 100644
+ occ |= c->tags;
+ if (c->isurgent)
+ urg |= c->tags;
+
+ c = focustop(m);
+ }
+
+ c = focustop(m);
+
+ /* tags */
+ if (moveright) {
+ tw = 0;