diff options
author | Joe <rbo@gmx.us> | 2025-03-02 01:03:25 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2025-03-02 01:03:25 +0100 |
commit | 5b8fe53fa25ea43dd7333bac97b9c2115876034e (patch) | |
tree | 61b1f4906c58e4be38fb8a1be2a4bb11d5de0920 | |
parent | grid and rainbows and its good (diff) | |
download | dwl-5b8fe53fa25ea43dd7333bac97b9c2115876034e.tar.gz dwl-5b8fe53fa25ea43dd7333bac97b9c2115876034e.tar.bz2 dwl-5b8fe53fa25ea43dd7333bac97b9c2115876034e.tar.xz dwl-5b8fe53fa25ea43dd7333bac97b9c2115876034e.tar.zst dwl-5b8fe53fa25ea43dd7333bac97b9c2115876034e.zip |
actually usable
-rw-r--r-- | dwl.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1707,6 +1707,8 @@ focusclient(Client *c, int lift) int unused_lx, unused_ly, old_client_type; Client *old_c = NULL; LayerSurface *old_l = NULL; + unsigned int focused_tag; + unsigned long int i; if (locked) return; @@ -1731,11 +1733,18 @@ focusclient(Client *c, int lift) selmon = c->mon; c->isurgent = 0; client_restack_surface(c); + focused_tag = selmon->tagset[selmon->seltags]; + for (i = 0; i < LENGTH(tags); i++) { + if (focused_tag & (1 << (i - 1))) { + break; + } + } /* Don't change border color if there is an exclusive focus or we are * handling a drag operation */ if (!exclusive_focus && !seat->drag) - client_set_border_color(c, (float[])COLOR(colors[SchemeSel][ColBorder])); + client_set_border_color(c, (float[])COLOR(tagsel[i - 1][0])); + // client_set_border_color(c, (float[])COLOR(colors[SchemeSel][ColBorder])); } /* Deactivate old client if focus is changing */ |