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>
This commit is contained in:
Jørgen Lind 2011-09-02 16:39:06 +02:00 committed by Paul Olav Tvete
parent 10354d71ae
commit 8d9266ca64

View File

@ -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()