summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Knight <andrew.knight@digia.com>2013-09-12 09:47:29 +0300
committerAndy Nichols <andy.nichols@digia.com>2013-09-12 12:26:09 +0200
commit0643eb7473b60449bcedb8b9eaac1adebcf5962c (patch)
tree32672efe1458ed8ae57e44add22dd538b1fdfd3d
parentf404c9e9069b27f50aaa21493a512915acd0a57a (diff)
Set window state on platform window creation
When creating the platform window, the window state should be set according to the value in the associated QWindow. This is especially important for new QWindows, as the application may expect the compositor to resize e.g. maximized or fullscreen surfaces. Change-Id: I9cf4eb810bb4fa6305da4206c9a2cec0247c2fe6 Reviewed-by: Jan Arne Petersen <jan.petersen@kdab.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com> Reviewed-by: Andy Nichols <andy.nichols@digia.com>
-rw-r--r--src/plugins/platforms/wayland_common/qwaylandwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/wayland_common/qwaylandwindow.cpp b/src/plugins/platforms/wayland_common/qwaylandwindow.cpp
index a3ad64180..aabba4a79 100644
--- a/src/plugins/platforms/wayland_common/qwaylandwindow.cpp
+++ b/src/plugins/platforms/wayland_common/qwaylandwindow.cpp
@@ -113,7 +113,7 @@ QWaylandWindow::QWaylandWindow(QWindow *window)
setWindowFlags(window->flags());
setGeometry(window->geometry());
-
+ setWindowState(window->windowState());
}
QWaylandWindow::~QWaylandWindow()