Skip to content

scripting/windowmodel: match screen closest to center for filter

Yifan Zhu requested to merge work/fanzhuyifan/windowfilter into master

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

Merge request reports