diff options
| author | filip <“filip.rabiega@gmail.com”> | 2025-09-24 01:45:06 +0200 |
|---|---|---|
| committer | filip <“filip.rabiega@gmail.com”> | 2025-09-24 01:45:06 +0200 |
| commit | cf0e409656e74f37edb18b6d3b732a9a990eb20b (patch) | |
| tree | 1c61ad89342bf223862c2f3b421edc45e85f683c /dwm.c | |
| parent | e754e470f21f39b459033c429fa3d7aa0f8f8fba (diff) | |
| download | chaddwm-cf0e409656e74f37edb18b6d3b732a9a990eb20b.tar.gz chaddwm-cf0e409656e74f37edb18b6d3b732a9a990eb20b.tar.bz2 chaddwm-cf0e409656e74f37edb18b6d3b732a9a990eb20b.zip | |
appied actualfullscreen and blanktags
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -218,6 +218,7 @@ static void tagmon(const Arg *arg); static void tile(Monitor *m); static void togglebar(const Arg *arg); static void togglefloating(const Arg *arg); +static void togglefullscr(const Arg *arg); static void toggletag(const Arg *arg); static void toggleview(const Arg *arg); static void unfocus(Client *c, int setfocus); @@ -444,7 +445,7 @@ buttonpress(XEvent *e) if (ev->window == selmon->barwin) { i = x = 0; do - x += TEXTW(tags[i]); + x += bh; while (ev->x >= x && ++i < LENGTH(tags)); if (i < LENGTH(tags)) { click = ClkTagBar; @@ -733,11 +734,11 @@ drawbar(Monitor *m) } x = 0; for (i = 0; i < LENGTH(tags); i++) { - w = TEXTW(tags[i]); + w = bh; drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]); - drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i); + drw_text(drw, x, 0, bh, bh, 0, "", urg & 1 << i); if (occ & 1 << i) - drw_rect(drw, x + boxs, boxs, boxw, boxw, + drw_rect(drw, x+boxw,boxw, w-boxw*2, w-boxw*2, m == selmon && selmon->sel && selmon->sel->tags & 1 << i, urg & 1 << i); x += w; @@ -1704,7 +1705,7 @@ altTabEnd() /* * move all clients between 1st and choosen position, - * one down in stack and put choosen client to the first position + * one down in stack and put choosen client to the first position * so they remain in right order for the next time that alt-tab is used */ if (selmon->nTabs > 1) { @@ -1955,6 +1956,13 @@ togglefloating(const Arg *arg) } void +togglefullscr(const Arg *arg) +{ + if(selmon->sel) + setfullscreen(selmon->sel, !selmon->sel->isfullscreen); +} + +void toggletag(const Arg *arg) { unsigned int newtags; |
