summaryrefslogtreecommitdiffstats
path: root/src/plugins/imageformats
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>2015-12-01 16:27:09 +0100
committerTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>2015-12-10 17:27:00 +0000
commit56f6252e7285c9c61a99416fa2a8571fd67c597f (patch)
treef420c68a6110aa30e9c4f74259524fcb5662a670 /src/plugins/imageformats
parent40c927e7331ea4ac9ca50de48560b700e657cded (diff)
xcb: compare to previous state when sending geometry and expose events
By calculating the previous geometry and passing it on when calling handleGeometryChange we can detect cases where setGeometry() on a QWindow didn't result in the expected geometry. The new (actual) geometry is delivered as a resize event. This also allows us to only send expose events when the size of the window has actually changed (instead of also sending when the window has just moved). Due to the async delivery of geometry changes on the xcb platform we need to avoid using QWindowPrivate's cached state of the geometry, as that will result in duplicate resize events when events are not flushed in between two system resize events coming in with the same size. Change-Id: I3d4abe4a1095dd96e6e354288d5b646c623c30dd Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Diffstat (limited to 'src/plugins/imageformats')
0 files changed, 0 insertions, 0 deletions