summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsabetts <sabetts>2004-01-30 18:52:07 +0000
committersabetts <sabetts>2004-01-30 18:52:07 +0000
commit8adc0f3af7f343991a3584cecb3183e1df855484 (patch)
tree9f2814d08056937f2b4972c99c200f4fb886d961 /src
parent40bcdaab7b5f418208110b7b3b106375c3d5464f (diff)
downloadratpoison-8adc0f3af7f343991a3584cecb3183e1df855484.zip
xsync call
Diffstat (limited to 'src')
-rw-r--r--src/actions.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/actions.c b/src/actions.c
index f8f0d41..98cf640 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -3234,6 +3234,10 @@ cmd_tmpwm (int interactive, char *data)
child = waitpid (pid, &status, 0);
} while (child != pid);
+ /* This xsync seems to be needed. Otherwise, the following code dies
+ because X thinks another WM is running. */
+ XSync (dpy, False);
+
/* Enable the event selection on the root window. */
for (i=0; i<num_screens; i++)
{