mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2025-12-16 09:53:24 +00:00
fix (barconfig): segfault when opening clients
This commit is contained in:
parent
09e674f5fe
commit
71eb4f8cf4
@ -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.
|
**NOTE**: This patch is a dwl port of the [original](https://dwm.suckless.org/patches/barconfig/) barconfig patch for dwm.
|
||||||
|
|
||||||
### Known Issues With Patch
|
### Known Issues With Patch
|
||||||
Putting the tags after the '|' separator prevents tags 1 to 7 from being displayed. I do not have any plans
|
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.
|
||||||
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
|
### Download
|
||||||
- [0.8](/dwl/dwl-patches/raw/branch/main/patches/barconfig/barconfig.patch)
|
- [0.8](/dwl/dwl-patches/raw/branch/main/patches/barconfig/barconfig.patch)
|
||||||
|
|||||||
@ -49,7 +49,7 @@ index bf340d8..f0d72cf 100644
|
|||||||
Client *c;
|
Client *c;
|
||||||
Buffer *buf;
|
Buffer *buf;
|
||||||
|
|
||||||
@@ -1581,48 +1581,98 @@ drawbar(Monitor *m)
|
@@ -1581,48 +1581,99 @@ drawbar(Monitor *m)
|
||||||
if (!(buf = bufmon(m)))
|
if (!(buf = bufmon(m)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -152,9 +152,10 @@ index bf340d8..f0d72cf 100644
|
|||||||
+ occ |= c->tags;
|
+ occ |= c->tags;
|
||||||
+ if (c->isurgent)
|
+ if (c->isurgent)
|
||||||
+ urg |= c->tags;
|
+ urg |= c->tags;
|
||||||
+
|
|
||||||
+ c = focustop(m);
|
|
||||||
+ }
|
+ }
|
||||||
|
+
|
||||||
|
+ c = focustop(m);
|
||||||
|
+
|
||||||
+ /* tags */
|
+ /* tags */
|
||||||
+ if (moveright) {
|
+ if (moveright) {
|
||||||
+ tw = 0;
|
+ tw = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user