summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Grenville <[email protected]>2014-10-06 11:36:47 +0800
committerRichard Grenville <[email protected]>2014-10-06 11:36:47 +0800
commit325fb4c2983cb3211138078bff9cbec749be21c8 (patch)
tree614ce7179a0b0318684ea07e2e87d1b137350770
parente3717f4f7bf3a0a0a015337454f1e381a6e0278f (diff)
downloadtdebase-325fb4c2983cb3211138078bff9cbec749be21c8.tar.gz
tdebase-325fb4c2983cb3211138078bff9cbec749be21c8.zip
Bug fix #224: Flush after XUngrabServer()
Fix #224 by XFlush() after XUngrabServer(). Thanks to rathsky and smlx for reporting.
-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) {