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