https://bugs.kde.org/show_bug.cgi?id=442378

--- Comment #11 from Andreas Hartmetz <[email protected]> ---
Git commit 36a51bdf68aa263a4871d9128ff976ea04e7e70f by Andreas Hartmetz.
Committed on 26/03/2026 at 12:39.
Pushed by ahartmetz into branch 'master'.

Improve (not fix) closest panel calculation in iconGeometry()

Particularly noticeable by the magic lamp effect minimizing to
the wrong screen(!). That is with panels to show only windows on
the same screen.
Comparing upper left corners is not the correct way to do it.
For example, in this triple screen setup with window W:

       | W |
|  Panel 1  |  Panel 2  |  Panel 3  |

The upper left corner of window W is closer to upper left corner
of the panel of screen 2, but the window is clearly on screen 1.

The new scheme is not completely correct - testing on screens with
different resolutions and scale factors does not always match up
where the magic lamp effect goes with which panel contains the
icon. But that is only for cases where the window center is close
to a screen border, which is much better than before.
I guess one would ideally ask the panels directly whether they
contain the icon in question.

M  +2    -1    src/window.cpp

https://invent.kde.org/plasma/kwin/-/commit/36a51bdf68aa263a4871d9128ff976ea04e7e70f

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to