Add: doesn't show the title bar.

This commit is contained in:
pixel2175 2025-08-13 09:54:27 +01:00
parent 561ff342dd
commit a390fc6003
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,5 @@
# Description
doesn't show the title.
Authors
- [pixel](https://codeberg.org/pi66/)

View File

@ -0,0 +1,20 @@
diff --git a/dwl.c b/dwl.c
index bf340d8..151aa99 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1613,15 +1613,9 @@ drawbar(Monitor *m)
if ((w = m->b.width - tw - x) > m->b.height) {
if (c) {
- drwl_setscheme(m->drw, colors[m == selmon ? SchemeSel : SchemeNorm]);
- drwl_text(m->drw, x, 0, w, m->b.height, m->lrpad / 2, client_get_title(c), 0);
- if (c && c->isfloating)
- drwl_rect(m->drw, x + boxs, boxs, boxw, boxw, 0, 0);
- } else {
drwl_setscheme(m->drw, colors[SchemeNorm]);
drwl_rect(m->drw, x, 0, w, m->b.height, 1, 1);
}
- }
wlr_scene_buffer_set_dest_size(m->scene_buffer,
m->b.real_width, m->b.real_height);