diff options
| author | bakkeby <[email protected]> | 2020-07-05 16:44:05 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-07-05 16:44:05 +0200 |
| commit | 5478f99c3b9ee86a2714bfa17a098308f844e356 (patch) | |
| tree | 4f3a78347a82048a92ce61fed084d4719e404d80 | |
| parent | f58c699dbb40293645f646f5488de81d4eb3d517 (diff) | |
| download | dwm-flexipatch-5478f99c3b9ee86a2714bfa17a098308f844e356.tar.gz dwm-flexipatch-5478f99c3b9ee86a2714bfa17a098308f844e356.zip | |
extrabar compatibility updates
+ only shows on a given monitor if staticstatus patch is enabled.
+ status2d support (although extrabar status is written on the right, not on the left)
+ now clears extrabar on other monitors in a multi-monitor setup
- breaks dwmblocks in terms of registred buttonpresses
- extrabar is not clickable
| -rw-r--r-- | dwm.c | 29 |
1 files changed, 21 insertions, 8 deletions
@@ -1619,7 +1619,7 @@ drawbar(Monitor *m) #else drw_text(drw, m->ww - m->tw - stw, 0, m->tw, bh, stp, stext, 0); #endif // PANGO_PATCH - #endif // STATUSCOLORS_PATCH + #endif // STATUSCOLORS_PATCH | STATUS2D_PATCH #if !STATUSALLMONS_PATCH } #endif // STATUSALLMONS_PATCH @@ -1912,20 +1912,33 @@ drawbar(Monitor *m) m->btw = w; #endif // AWESOMEBAR_PATCH drw_map(drw, m->barwin, 0, 0, m->ww - stw, bh); + #if EXTRABAR_PATCH - if (m == selmon) { /* extra status is only drawn on selected monitor */ - #if VTCOLORS_PATCH - drw_setscheme(drw, scheme[SchemeTitleNorm]); - #else - drw_setscheme(drw, scheme[SchemeNorm]); - #endif // VTCOLORS_PATCH - #if PANGO_PATCH + #if VTCOLORS_PATCH + drw_setscheme(drw, scheme[SchemeTitleNorm]); + #else + drw_setscheme(drw, scheme[SchemeNorm]); + #endif // VTCOLORS_PATCH + drw_rect(drw, 0, 0, m->ww, bh, 1, 1); + #if STATICSTATUS_PATCH + if (m == statmon) + #else + if (m == selmon) + #endif // STATICSTATUS_PATCH + { /* extra status is only drawn on selected monitor */ + #if STATUS2D_PATCH + drawstatusbar(m, bh, estext, 0, 0); + #elif PANGO_PATCH drw_text(drw, 0, 0, mons->ww, bh, 0, estext, 0, True); #else drw_text(drw, 0, 0, mons->ww, bh, 0, estext, 0); #endif // PANGO_PATCH drw_map(drw, m->extrabarwin, 0, 0, m->ww, bh); } + #if !STATICSTATUS_PATCH + else + drw_map(drw, m->extrabarwin, 0, 0, m->ww, bh); + #endif // STATICSTATUS_PATCH #endif // EXTRABAR_PATCH } |
