Fix "Keep toplevel windows in the top left corner of the screen" patch
This commit is contained in:
parent
11c7783e95
commit
a07870a8d1
@ -24,6 +24,20 @@ Reviewed-by: Aleix Pol Gonzalez <aleixpol@kde.org>
|
|||||||
src/client/qwaylandwindow_p.h | 3 +++
|
src/client/qwaylandwindow_p.h | 3 +++
|
||||||
3 files changed, 20 insertions(+), 1 deletion(-)
|
3 files changed, 20 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/client/qwaylandintegration.cpp b/src/client/qwaylandintegration.cpp
|
||||||
|
index 2bf5fa4..823049c 100644
|
||||||
|
--- a/src/client/qwaylandintegration.cpp
|
||||||
|
+++ b/src/client/qwaylandintegration.cpp
|
||||||
|
@@ -122,6 +122,9 @@ QWaylandIntegration::QWaylandIntegration()
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ QWaylandWindow::fixedToplevelPositions =
|
||||||
|
+ !qEnvironmentVariableIsSet("QT_WAYLAND_DISABLE_FIXED_POSITIONS");
|
||||||
|
+
|
||||||
|
// ### Not ideal...
|
||||||
|
// We don't want to use QPlatformWindow::requestActivate here, since that gives a warning
|
||||||
|
// for most shells. Also, we don't want to put this into the specific shells that can use
|
||||||
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
|
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
|
||||||
index 5161604..d57e9ed 100644
|
index 5161604..d57e9ed 100644
|
||||||
--- a/src/client/qwaylandwindow.cpp
|
--- a/src/client/qwaylandwindow.cpp
|
||||||
|
Loading…
Reference in New Issue
Block a user