diff options
| author | 0scar <qgt268@alumni.ku.dk> | 2025-01-20 19:39:48 +0000 |
|---|---|---|
| committer | 0scar <qgt268@alumni.ku.dk> | 2025-01-20 19:39:48 +0000 |
| commit | 9c2a7d001dc4cf205b79aeb2d1196e26977111fc (patch) | |
| tree | 32535091fccf270b1d8ea8d869ca57f4c109bb24 /dwl.c | |
| parent | 10cf1b63f7cbafdb2e08935897bacb9def4243a6 (diff) | |
tmp
Diffstat (limited to 'dwl.c')
| -rw-r--r-- | dwl.c | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -89,7 +89,7 @@ #define TEXTW(mon, text) (drwl_font_getwidth(mon->drw, text) + mon->lrpad) /* enums */ -enum { SchemeNorm, SchemeSel, SchemeUrg }; /* color schemes */ +enum { SchemeNorm, SchemeSel, SchemeTagSel, SchemeUrg }; /* color schemes */ enum { CurNormal, CurPressed, CurMove, CurResize }; /* cursor */ enum { XDGShell, LayerShell, X11 }; /* client types */ enum { LyrBg, LyrBottom, LyrTile, LyrFloat, LyrTop, LyrFS, LyrOverlay, LyrBlock, NUM_LAYERS }; /* scene layers */ @@ -1632,7 +1632,7 @@ dwl_ipc_manager_bind(struct wl_client *client, void *data, uint32_t version, uin } wl_resource_set_implementation(manager_resource, &dwl_manager_implementation, NULL, dwl_ipc_manager_destroy); - zdwl_ipc_manager_v2_send_tags(manager_resource, TAGCOUNT); + zdwl_ipc_manager_v2_send_tags(manager_resource, LENGTH(tags)); for (unsigned int i = 0; i < LENGTH(layouts); i++) zdwl_ipc_manager_v2_send_layout(manager_resource, layouts[i].symbol); @@ -1693,7 +1693,7 @@ dwl_ipc_output_printstatus_to(DwlIpcOutput *ipc_output) focused = focustop(monitor); zdwl_ipc_output_v2_send_active(ipc_output->resource, monitor == selmon); - for (tag = 0 ; tag < TAGCOUNT; tag++) { + for (tag = 0 ; tag < LENGTH(tags); tag++) { numclients = state = focused_client = 0; tagmask = 1 << tag; if ((tagmask & monitor->tagset[monitor->seltags]) != 0) @@ -1754,7 +1754,7 @@ dwl_ipc_output_set_client_tags(struct wl_client *client, struct wl_resource *res if (selmon == monitor) focusclient(focustop(monitor), 1); arrange(selmon); - printstatus(); + //printstatus(); } void @@ -1775,7 +1775,7 @@ dwl_ipc_output_set_layout(struct wl_client *client, struct wl_resource *resource monitor->lt[monitor->sellt] = &layouts[index]; arrange(monitor); - printstatus(); + //printstatus(); } void @@ -1799,7 +1799,7 @@ dwl_ipc_output_set_tags(struct wl_client *client, struct wl_resource *resource, if (selmon == monitor) focusclient(focustop(monitor), 1); arrange(monitor); - printstatus(); + //printstatus(); } void @@ -1841,7 +1841,7 @@ drawbar(Monitor *m) c = focustop(m); for (i = 0; i < LENGTH(tags); i++) { w = TEXTW(m, tags[i]); - drwl_setscheme(m->drw, colors[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]); + drwl_setscheme(m->drw, colors[m->tagset[m->seltags] & 1 << i ? SchemeTagSel : SchemeNorm]); drwl_text(m->drw, x, 0, w, m->b.height, m->lrpad / 2, tags[i], urg & 1 << i); if (occ & 1 << i) drwl_rect(m->drw, x + boxs, boxs, boxw, boxw, @@ -3492,12 +3492,12 @@ tile(Monitor *m) } } -void -togglebar(const Arg *arg) { - DwlIpcOutput *ipc_output; - wl_list_for_each(ipc_output, &selmon->dwl_ipc_outputs, link) - zdwl_ipc_output_v2_send_toggle_visibility(ipc_output->resource); -} +//void +//togglebar(const Arg *arg) { +// DwlIpcOutput *ipc_output; +// wl_list_for_each(ipc_output, &selmon->dwl_ipc_outputs, link) +// zdwl_ipc_output_v2_send_toggle_visibility(ipc_output->resource); +//} void togglebar(const Arg *arg) |
