applied patch from pancake
[surf.git] / surf.c
diff --git a/surf.c b/surf.c
index 139c25b..deb916f 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -445,6 +445,7 @@ newclient(void) {
        c->next = clients;
        clients = c;
        if(showxid) {
+               gdk_display_sync(gtk_widget_get_display(c->win));
                printf("%u\n", (guint)GDK_WINDOW_XID(GTK_WIDGET(c->win)->window));
                fflush(NULL);
        }
@@ -658,8 +659,6 @@ int main(int argc, char *argv[]) {
 
        /* make dirs */
        home = g_get_home_dir();
-       filename = g_build_filename(home, ".surf", NULL);
-       g_mkdir_with_parents(filename, 0711);
        filename = g_build_filename(home, ".surf", "dl", NULL);
        g_mkdir_with_parents(filename, 0755);