Skip to content

tiling: Add fallback path for the first Polonium tile

Alik Aslanyan requested to merge inline/kwin:fix-polonium into master

After !5532 (merged) a new code path was triggered during Workspace::rearrange call. When first Polonium window opens on any screen, there is no active tile yet. This forces geometry calculation in Window::checkWorkspacePosition -> Window::ensureSpecialStateGeometry To return empty QRect, which depending on the screen arrangement will move window to the other screen.

This confuses Polonium plugin, as it receives wrong outputChanged signal in scripting API.

BUG: 488898

Merge request reports