]> git.sesse.net Git - vlc/commitdiff
xcb: fix resizing failing to succeed sometimes
authorErwan Tulou <erwan10@videolan.org>
Sun, 10 Jan 2010 20:56:04 +0000 (21:56 +0100)
committerErwan Tulou <erwan10@videolan.org>
Mon, 25 Jan 2010 19:09:59 +0000 (20:09 +0100)
The vout window provider may issue a series of several resize events in a row.
(e.g a user switching back and forth between two layouts in skins2)
Some events may then be wrongly discarded by xcb based on a check that doesn't
represent the latest situation.
The new design actually can accept all resizing events, and only processes the last event of a series of events detected by xcb. No filtering is needed in xcb.

modules/video_output/xcb/events.c

index 9c70bd663b411a8b5b48e69056c2434b2142e7ed..b12c013dd259426d3505ef87106fbfd4e68a6d80 100644 (file)
@@ -165,9 +165,7 @@ static void
 HandleParentStructure (vout_display_t *vd,
                        const xcb_configure_notify_event_t *ev)
 {
-    if (ev->width  != vd->cfg->display.width ||
-        ev->height != vd->cfg->display.height)
-        vout_display_SendEventDisplaySize (vd, ev->width, ev->height, vd->cfg->is_fullscreen);
+    vout_display_SendEventDisplaySize (vd, ev->width, ev->height, vd->cfg->is_fullscreen);
 }
 
 /**