From a07870a8d1a815083f7b375329fb91a442905cbd Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Fri, 29 Jul 2022 14:31:28 +0200 Subject: [PATCH] Fix "Keep toplevel windows in the top left corner of the screen" patch --- ...dows-in-the-top-left-corner-of-the-screen.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/0100-Keep-toplevel-windows-in-the-top-left-corner-of-the-screen.patch b/0100-Keep-toplevel-windows-in-the-top-left-corner-of-the-screen.patch index df08c81..6a3f6e7 100644 --- a/0100-Keep-toplevel-windows-in-the-top-left-corner-of-the-screen.patch +++ b/0100-Keep-toplevel-windows-in-the-top-left-corner-of-the-screen.patch @@ -24,6 +24,20 @@ Reviewed-by: Aleix Pol Gonzalez src/client/qwaylandwindow_p.h | 3 +++ 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 index 5161604..d57e9ed 100644 --- a/src/client/qwaylandwindow.cpp