From 712ecafd07eae7e5e3bd2ca5f50703debf966a63 Mon Sep 17 00:00:00 2001 From: Karim Pinter Date: Wed, 17 Oct 2012 14:30:31 +0300 Subject: Fix for fullscreen resolution change on QWS Fix for QTBUG-27607. Now it handles the setMaxWindowRect for fullscreen widgets. It is called when the resolution changes with QWS. Change-Id: I0fdbb39c55f727b6507fbb14369943dd8b7c2d7e Reviewed-by: Samuli Piippo Reviewed-by: Paul Olav Tvete --- src/gui/kernel/qapplication_qws.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/kernel/qapplication_qws.cpp b/src/gui/kernel/qapplication_qws.cpp index 3ac3544b40..a665edc360 100644 --- a/src/gui/kernel/qapplication_qws.cpp +++ b/src/gui/kernel/qapplication_qws.cpp @@ -258,8 +258,12 @@ void QApplicationPrivate::setMaxWindowRect(const QScreen *screen, int screenNo, for (int i = 0; i < l.size(); ++i) { QWidget *w = l.at(i); QScreen *s = w->d_func()->getScreen(); - if (w->isMaximized() && s == screen) - w->d_func()->setMaxWindowState_helper(); + if (s == screen) { + if (w->isMaximized()) + w->d_func()->setMaxWindowState_helper(); + else if (w->isFullScreen()) + w->d_func()->setFullScreenSize_helper(); + } } if ( qt_desktopWidget ) // XXX workaround crash -- cgit v1.2.3