commit b8690a64b1c29f72ee1d47208507e1d7475568d2 from: Brett Fisher date: Sun Jun 7 03:12:17 2026 UTC bxwm.c: Clear _NET_ACTIVE_WINDOW when workspace has no focus. - Update focus_next() and focus_prev() to reset the _NET_ACTIVE_WINDOW atom when transitioning to a workspace without clients. - Ensures consistent state display in status bars and external monitors. commit - c9f5f76d5451eb283e33019887e890a5f32071e4 commit + b8690a64b1c29f72ee1d47208507e1d7475568d2 blob - 12f91ea5a01c7cac362b744ab37afa01049d30ef blob + 5087f911e780712fbc97dc10ef013eaab485cf4c --- bxwm.c +++ bxwm.c @@ -806,6 +806,9 @@ focus_next(void) { focused_client->focused = 0; focused_client = NULL; XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); + long active = None; + XChangeProperty(dpy, root, net_active_window, XA_WINDOW, 32, + PropModeReplace, (unsigned char *)&active, 1); } } @@ -843,6 +846,9 @@ focus_prev(void) { focused_client->focused = 0; focused_client = NULL; XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); + long active = None; + XChangeProperty(dpy, root, net_active_window, XA_WINDOW, 32, + PropModeReplace, (unsigned char *)&active, 1); } }