ximagesink: generate reconfigure on window handle change
authorJakub Adam <jakub.adam@ktknet.cz>
Thu, 21 Apr 2016 06:45:40 +0000 (08:45 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 26 Apr 2016 08:13:01 +0000 (11:13 +0300)
commit59d7f9c62ee95dfbb5b450476f73a717e03b7b8c
treec611e92e4b3c38b46bb97d2b05ccd5546f09c07f
parent7ba7c58f992be6ad1447b79e8798689c116cc9a5
ximagesink: generate reconfigure on window handle change

When ximagesink is given a new window handle, it should check
its geometry and if the size of the new window differs from
the previous one, create reconfigure event in order to get
a chance to negotiate a more suitable image resolution with
the upstream elements.

We can't rely on receiving Expose or ConfigureNotify from
the X server for the newly assigned window, which would also
generate reconfigure.

https://bugzilla.gnome.org/show_bug.cgi?id=765424
sys/ximage/ximagesink.c