~dandrader/qtubuntu/cursor

Viewing all changes in revision 273.

  • Committer: CI Train Bot
  • Author(s): Daniel d'Andrada, Michael Zanetti
  • Date: 2015-08-14 12:18:25 UTC
  • mfrom: (269.1.4 busySwap-lp1473720)
  • Revision ID: ci-train-bot@canonical.com-20150814121825-tw0nwutuyvg3huqx
Fix surface resize

If you call QWindowSystemInterface::handleExposeEvent() from the render
thread you won't give the main thread a chance 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, leaving
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.
Approved by: Gerry Boland

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: