commit 95214f7
wf
·
2026-05-12 18:56:22 +0000 UTC
parent 74a903e
Update client visibility when switching workspaces
1 files changed,
+12,
-4
+12,
-4
1@@ -483,10 +483,14 @@ sync_windows(void) {
2 struct client *c;
3
4 wl_list_for_each(c, &wm.clients, link) {
5- if (c->ws == wm.ws)
6+ if (c->ws == wm.ws) {
7+ c->visible = true;
8 swc_window_show(c->win);
9- else
10+ }
11+ else {
12+ c->visible = false;
13 swc_window_hide(c->win);
14+ }
15 }
16 }
17
18@@ -522,10 +526,14 @@ ws_move_to(uint8_t ws, struct client *c) {
19 return;
20
21 c->ws = ws;
22- if (c->ws == wm.ws)
23+ if (c->ws == wm.ws) {
24+ c->visible = true;
25 swc_window_show(c->win);
26- else
27+ }
28+ else {
29+ c->visible = false;
30 swc_window_hide(c->win);
31+ }
32
33 next = first_client(wm.scr);
34 if (!next)