summaryrefslogtreecommitdiff
path: root/src/sxwm.c
diff options
context:
space:
mode:
authorwerdl <werdl@users.noreply.github.com>2025-05-17 12:49:03 +0100
committerwerdl <werdl@users.noreply.github.com>2025-05-17 12:49:03 +0100
commit9412ea484f6893ee31262ac5d3e9ae7e49cdba27 (patch)
treec43b764ab3186eb8eaa34256c45e0bb51e4486fa /src/sxwm.c
parente3c0a4658e16025de7b649693814d9a0ee5a4028 (diff)
use xdg config dirs
Diffstat (limited to 'src/sxwm.c')
-rw-r--r--src/sxwm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sxwm.c b/src/sxwm.c
index d2ade15..dd779df 100644
--- a/src/sxwm.c
+++ b/src/sxwm.c
@@ -203,6 +203,8 @@ void change_workspace(int ws)
return;
}
+ XGrabServer(dpy);
+
for (Client *c = workspaces[current_ws]; c; c = c->next) {
XUnmapWindow(dpy, c->win);
}
@@ -221,6 +223,8 @@ void change_workspace(int ws)
long cd = current_ws;
XChangeProperty(dpy, root, XInternAtom(dpy, "_NET_CURRENT_DESKTOP", False), XA_CARDINAL, 32, PropModeReplace,
(unsigned char *)&cd, 1);
+
+ XUngrabServer(dpy);
}
int clean_mask(int mask)