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
This commit is contained in:
Vlad Zahorodnii 2024-07-18 13:56:56 +03:00
parent 49f656a3d9
commit a10c322f7a

View file

@ -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