Skip to content

🍒 scripting/windowmodel: match screen closest to center for filter

Yifan Zhu requested to merge work/cherry-pick-1a4606d9 into Plasma/6.0

When filtering windows by screen, match the screen closest to the window center, instead of testing whether the window is visible on the current screen. The new method guarantees that when filtering by screen, the window appears for exactly one screen. Previously windows spanning multiple screens appear on all of them, and off-screen windows are not shown in any screen.

BUG: 480028 BUG: 485337

FIXED-IN: 6.0.4

(cherry picked from commit 1a4606d9)

Merge request reports