Only set frame margins as dirty when we get a configure notify event.
authorSamuel Rødal <samuel.rodal@nokia.com>
Thu, 22 Sep 2011 07:00:55 +0000 (09:00 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 23 Sep 2011 09:30:47 +0000 (11:30 +0200)
commit078d7018199eee1cb2850f077f12aa95bf328e44
treebbd601ec072c4698ea3b1dc57f0c06f84a336645
parent37f338e5edc6d7b70b5a4eaf63326f2a22d7bfbd
Only set frame margins as dirty when we get a configure notify event.

It's dangerous to set them as dirty in anticipation of a configure
notify event, as if frameMargins() is called before the event is
received the computed values are bogus.

Change-Id: Ib6db975fba5fcb13a2511e4716cbb5ca79265c34
Reviewed-on: http://codereview.qt-project.org/5365
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/plugins/platforms/xcb/qxcbwindow.cpp