summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2011-09-02 16:39:06 +0200
committerPaul Olav Tvete <paul.tvete@nokia.com>2011-09-02 16:42:08 +0200
commit8d9266ca642d6b59089640e24363ea15e709d0b9 (patch)
tree134ab9aa79a8484ffa31e391de70ad10c4002a91
parent10354d71aed2ef1b7247a857d8f020fb9dca769c (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.cpp5
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()