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

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/76516a10c0 |ma/kwin/-/commit/cb0e06d290
                   |230e0bc5d3fc65e3998425075a6 |0add3387e235a62f94cbfb914d0
                   |cda                         |deb

--- Comment #13 from Vlad Zahorodnii <vlad.zahorod...@kde.org> ---
Git commit cb0e06d2900add3387e235a62f94cbfb914d0deb by Vlad Zahorodnii, on
behalf of Yifan Zhu.
Committed on 06/03/2025 at 22:09.
Pushed by vladz into branch 'Plasma/6.3'.

window: reimplement restriction in moveResize

In restricted moveResize, try to guarantee at least a 100px contiguous
block of the titlebar is visible. Previously this was implemented by
shifting the geometry by 1px increments, trying to find a suitable
position. This is inefficient and error-prone.

Replace this with an efficient algorithm that finds the closest
candidate position. Consolidate the restriction code and add tests.
Related: bug 401271, bug 493797
(cherry picked from commit 76516a10c0230e0bc5d3fc65e3998425075a6cda)

M  +396  -1    autotests/integration/move_resize_window_test.cpp
M  +3    -3    autotests/integration/x11_window_test.cpp
A  +-    --    doc/moveresizerestriction/moveresizerestriction.pdf
A  +232  -0    doc/moveresizerestriction/moveresizerestriction.tex
M  +266  -172  src/window.cpp
M  +1    -1    src/window.h

https://invent.kde.org/plasma/kwin/-/commit/cb0e06d2900add3387e235a62f94cbfb914d0deb

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

Reply via email to