From 539a8ff27e556b11d9aa933d06ef641072702c73 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Tue, 1 Jul 2025 19:13:57 +0100 Subject: fix bottom bar struts taking half screen && windows killed on exit --- src/sxwm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sxwm.c b/src/sxwm.c index 7aabdba..90ef09d 100644 --- a/src/sxwm.c +++ b/src/sxwm.c @@ -1498,6 +1498,7 @@ void update_struts(void) } } XFree(children); + update_workarea(); } void update_workarea(void) @@ -1736,12 +1737,16 @@ long parse_col(const char *hex) void quit(void) { + /* Kill all clients on exit... + for (int ws = 0; ws < NUM_WORKSPACES; ws++) { for (Client *c = workspaces[ws]; c; c = c->next) { XUnmapWindow(dpy, c->win); XKillClient(dpy, c->win); } } + */ + XSync(dpy, False); XCloseDisplay(dpy); XFreeCursor(dpy, c_move); -- cgit v1.2.3