JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
add a couple more xcb_flush()'s
authorDavid Hill <dhill@conformal.com>
Mon, 16 Jul 2012 19:04:52 +0000 (15:04 -0400)
committerReginald Kennedy <rk@rejii.com>
Fri, 20 Jul 2012 21:59:31 +0000 (05:59 +0800)
spectrwm.c

index a2478ce..292781e 100644 (file)
@@ -7286,6 +7286,7 @@ screenchange(xcb_randr_screen_change_notify_event_t *e)
        else
                xcb_randr_set_screen_size(conn, e->root, e->width,
                    e->height, e->mwidth, e->mheight);
+       xcb_flush(conn);
 
        num_screens = xcb_setup_roots_length(xcb_get_setup(conn));
        /* silly event doesn't include the screen index */
@@ -7777,6 +7778,7 @@ done:
        XFreeFontSet(display, bar_fs);
 #endif
        xcb_key_symbols_free(syms);
+       xcb_flush(conn);
        xcb_disconnect(conn);
 
        return (0);