diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2011-09-02 16:39:06 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@nokia.com> | 2011-09-02 16:42:08 +0200 |
commit | 8d9266ca642d6b59089640e24363ea15e709d0b9 (patch) | |
tree | 134ab9aa79a8484ffa31e391de70ad10c4002a91 /src/plugins/platforms/wayland | |
parent | 10354d71aed2ef1b7247a857d8f020fb9dca769c (diff) |
Propogate that the size has changed
Change-Id: I73dde157e38933d39992cb4393297c0849ee1ae2
Reviewed-on: http://codereview.qt.nokia.com/4149
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
Diffstat (limited to 'src/plugins/platforms/wayland')
-rw-r--r-- | src/plugins/platforms/wayland/gl_integration/wayland_egl/qwaylandeglwindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/platforms/wayland/gl_integration/wayland_egl/qwaylandeglwindow.cpp b/src/plugins/platforms/wayland/gl_integration/wayland_egl/qwaylandeglwindow.cpp index 245097ef6c..e0e1f772b9 100644 --- a/src/plugins/platforms/wayland/gl_integration/wayland_egl/qwaylandeglwindow.cpp +++ b/src/plugins/platforms/wayland/gl_integration/wayland_egl/qwaylandeglwindow.cpp @@ -47,6 +47,7 @@ #include <QtPlatformSupport/private/qeglconvenience_p.h> #include <QtGui/QWindow> +#include <QtGui/QWindowSystemInterface> QWaylandEglWindow::QWaylandEglWindow(QWindow *window) : QWaylandWindow(window) @@ -77,8 +78,10 @@ QWaylandWindow::WindowType QWaylandEglWindow::windowType() const void QWaylandEglWindow::setGeometry(const QRect &rect) { QWaylandWindow::setGeometry(rect); - if (m_waylandEglWindow) + if (m_waylandEglWindow){ wl_egl_window_resize(m_waylandEglWindow, rect.width(), rect.height(), 0, 0); + QWindowSystemInterface::handleGeometryChange(window(), rect); + } } void QWaylandEglWindow::newSurfaceCreated() |