From 1b02e97a7366c420399ff9a548a66ef15ac8e31a Mon Sep 17 00:00:00 2001 From: Ben Woolley Date: Tue, 24 Mar 2015 15:20:10 -0700 Subject: [PATCH 09/13] Need this to apparently prevent a race condition when calling SETPROP() right after setatom(). This use case is not yet at this commit. This is in a separate changeset for indpendent review. --- surf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/surf.c b/surf.c index caeb776..c2db21f 100644 --- a/surf.c +++ b/surf.c @@ -1231,6 +1231,7 @@ setatom(Client *c, int a, const char *v) { XChangeProperty(dpy, GDK_WINDOW_XID(GTK_WIDGET(c->win)->window), atoms[a], XA_STRING, 8, PropModeReplace, (unsigned char *)v, strlen(v) + 1); + XSync(dpy, False); } static void -- 2.2.2