Commit 6862cff0 authored by Erwan Tulou's avatar Erwan Tulou

xcb: fix resizing failing to succeed sometimes

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.
parent afe5f8d6
...@@ -165,9 +165,7 @@ static void ...@@ -165,9 +165,7 @@ static void
HandleParentStructure (vout_display_t *vd, HandleParentStructure (vout_display_t *vd,
const xcb_configure_notify_event_t *ev) const xcb_configure_notify_event_t *ev)
{ {
if (ev->width != vd->cfg->display.width || vout_display_SendEventDisplaySize (vd, ev->width, ev->height, vd->cfg->is_fullscreen);
ev->height != vd->cfg->display.height)
vout_display_SendEventDisplaySize (vd, ev->width, ev->height, vd->cfg->is_fullscreen);
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment