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

Vlad Zahorodnii <vlad.zahorod...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/kwin/commit/124d91540875 |ma/kwin/commit/575f56b5e6be
                   |37b927953abaec90450df2ac8f8 |bc3861cde28631acc3b927c310e
                   |5                           |1

--- Comment #6 from Vlad Zahorodnii <vlad.zahorod...@kde.org> ---
Git commit 575f56b5e6bebc3861cde28631acc3b927c310e1 by Vlad Zahorodnii.
Committed on 16/05/2023 at 06:02.
Pushed by vladz into branch 'Plasma/5.27'.

effects/magiclamp: Improve animation direction heuristic

If the panel is placed between two outputs, the magic lamp can pick
wrong direction and the animation will look bad.

This change improves the direction heuristic by making it analyze the
position of the center point of the screen where the window is relative
to the center point of the icon in the task manager.

The screen center is used instead of the window center in order to
properly handle edge cases such as where the window center is offscreen.

For example, if the panel is vertical (e.g. it's attached to the left
side of a monitor), the magic lamp will pick the following directions:

- if the window is to the left side of the panel, the window will be
  animated so it moves to the right hand side
- if the window is to the right side of the panel, the window will be
  animated so it moves to the left hand side

Without this change, the window will always move to the left hand side.
(cherry picked from commit 124d9154087537b927953abaec90450df2ac8f85)

M  +4    -4    src/effects/magiclamp/magiclamp.cpp

https://invent.kde.org/plasma/kwin/commit/575f56b5e6bebc3861cde28631acc3b927c310e1

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

Reply via email to