~mir-team/qtubuntu/busySwap-lp1473720

Viewing all changes in revision 270.

  • Committer: Daniel d'Andrada
  • Date: 2015-07-14 21:00:03 UTC
  • Revision ID: daniel.dandrada@canonical.com-20150714210003-qu0dtqui2jxmt3s1
Fix surface resize

If you call QWindowSystemInterface::handleExposeEvent() from the render
thread you won't give a change for the main thread to process further
resize events. In a long resize animation (like dragging a window border
with mouse) the resize events will queue up like crazy, leving
handleSurfaceResize() to deal with a ton of outdated resize events
once the resize animation is finally over.

Furthermore, as there's no synchronicity between the processing of resize
events and the consupmtion of buffers, there's no point in trying to tie
one to the other in any way. So better ignore the actual size information
from a resize event.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: