diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-02-14 09:44:44 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-02-14 09:45:19 (GMT) |
commit | 6027b734714aadf22d34f4e99663b4117cdb4a28 (patch) | |
tree | fc9c4607a5f045dc5d0dc4a3485710aec4f367e9 /src/plugins | |
parent | 0ade22781b4f8d291e0b096160f2db5a3caec9dd (diff) | |
download | Qt-6027b734714aadf22d34f4e99663b4117cdb4a28.zip Qt-6027b734714aadf22d34f4e99663b4117cdb4a28.tar.gz Qt-6027b734714aadf22d34f4e99663b4117cdb4a28.tar.bz2 |
Properly update the geometry variable of QPlatformWindow when resized.
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbwindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbwindow.cpp b/src/plugins/platforms/xcb/qxcbwindow.cpp index 7fb4cc4..78cba1c 100644 --- a/src/plugins/platforms/xcb/qxcbwindow.cpp +++ b/src/plugins/platforms/xcb/qxcbwindow.cpp @@ -441,7 +441,10 @@ void QXcbWindow::handleConfigureNotifyEvent(const xcb_configure_notify_event_t * ypos = event->y; } - QWindowSystemInterface::handleGeometryChange(widget(), QRect(xpos, ypos, event->width, event->height)); + QRect rect(xpos, ypos, event->width, event->height); + QPlatformWindow::setGeometry(rect); + + QWindowSystemInterface::handleGeometryChange(widget(), rect); } static Qt::MouseButtons translateMouseButtons(int s) |