summaryrefslogtreecommitdiffstats
path: root/compton.c
diff options
context:
space:
mode:
Diffstat (limited to 'compton.c')
-rw-r--r--compton.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/compton.c b/compton.c
index b967372ee..aec56cacd 100644
--- a/compton.c
+++ b/compton.c
@@ -7333,6 +7333,8 @@ session_init(session_t *ps_old, int argc, char **argv) {
}
XUngrabServer(ps->dpy);
+ // ALWAYS flush after XUngrabServer()!
+ XFlush(ps->dpy);
// Initialize DBus
if (ps->o.dbus) {