From a10c322f7a31148f7b203541a53d5d96c60b2ae8 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 18 Jul 2024 13:56:56 +0300 Subject: [PATCH] wayland: Ignore plasma shell reposition requests during interactive move resize Both kwin and plasma have different placement strategies during interactive move resize. That can result in the window flipping between two positions. In order to prevent that, this change makes kwin placement take precedence over the window position specified using the plasmashell protocol. This can be considered as a workaround. BUG: 481829 --- src/xdgshellwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xdgshellwindow.cpp b/src/xdgshellwindow.cpp index 386aa0d3d9..22f6aa872b 100644 --- a/src/xdgshellwindow.cpp +++ b/src/xdgshellwindow.cpp @@ -322,7 +322,9 @@ void XdgSurfaceWindow::installPlasmaShellSurface(PlasmaShellSurfaceInterface *sh m_plasmaShellSurface = shellSurface; auto updatePosition = [this, shellSurface] { - move(shellSurface->position()); + if (!isInteractiveMoveResize()) { + move(shellSurface->position()); + } }; auto showUnderCursor = [this] { // Wait for the first commit