diff options
author | Joe <rbo@gmx.us> | 2025-03-02 21:14:49 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2025-03-02 21:14:49 +0100 |
commit | 676d246d8195de97d01b4a9b4f1aa901545fd9d4 (patch) | |
tree | 1c3143dc0997c0a94519e34e812180d1e262137e /dwl.c | |
parent | up (diff) | |
download | dwl-jozan.tar.gz dwl-jozan.tar.bz2 dwl-jozan.tar.xz dwl-jozan.tar.zst dwl-jozan.zip |
keysjozan
Diffstat (limited to 'dwl.c')
-rw-r--r-- | dwl.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1869,8 +1869,16 @@ focusclient(Client *c, int lift) if (c && lift) wlr_scene_node_raise_to_top(&c->scene->node); - if (c && client_surface(c) == old) + if (c && client_surface(c) == old && !seat->drag) { + focused_tag = selmon->tagset[selmon->seltags]; + for (i = 0; i < LENGTH(tags); i++) { + if (focused_tag & (1 << (i - 1))) { + break; + } + } + client_set_border_color(c, (float[])COLOR(tagsel[i - 1][0])); return; + } if ((old_client_type = toplevel_from_wlr_surface(old, &old_c, &old_l)) == XDGShell) { struct wlr_xdg_popup *popup, *tmp; @@ -3935,7 +3943,6 @@ winview(const Arg *a) { return; b.ui = sel -> tags; view(&b); - focusclient(sel, 1); return; } |