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 | f69e3c2ba78ac60cbc74dbded923a2880839c58a (patch) | |
tree | ea9e15085a50f7bf4c28547bce683ef82500afa6 | |
parent | 123e90b5b97587b0005136316adc8e3f3603ca34 (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>
-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 245097ef6..e0e1f772b 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() |