1From 5adf8cdfef83ddddead8029e311729b381c7fd33 Mon Sep 17 00:00:00 2001
2From: Jeffy Chen <jeffy.chen@rock-chips.com>
3Date: Mon, 4 Mar 2019 17:22:51 +0800
4Subject: [PATCH 06/17] qwaylandwindow: Don't try to move fullscreen/maximized
5 window
6
7Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
8---
9 src/client/qwaylandwindow.cpp | 6 +++++-
10 1 file changed, 5 insertions(+), 1 deletion(-)
11
12diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
13index 6cbd315..6ec9e99 100644
14--- a/src/client/qwaylandwindow.cpp
15+++ b/src/client/qwaylandwindow.cpp
16@@ -351,7 +351,11 @@ void QWaylandWindow::setGeometry_helper(const QRect &rect)
17
18 void QWaylandWindow::setGeometry(const QRect &rect)
19 {
20-    setGeometry_helper(rect);
21+    if (window()->windowStates() == Qt::WindowFullScreen
22+        || window()->windowStates() == Qt::WindowMaximized)
23+        setGeometry_helper(QRect(QPoint(), rect.size()));
24+    else
25+        setGeometry_helper(rect);
26
27     if (window()->isVisible() && rect.isValid()) {
28         if (mWindowDecoration)
29--
302.20.1
31
32