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

--- Comment #7 from Akseli Lahtinen <[email protected]> ---
Git commit 92b57ea3fda504e644dd55fd1a7fd8dee9304d27 by Akseli Lahtinen.
Committed on 26/09/2025 at 16:49.
Pushed by akselmo into branch 'master'.

GridLayoutManager: Fix some freezes that would happen with dragging widgets

GridLayoutManager does a lot of calculations when
looking for the next fitting spot for a widget.
These are while loops that can often get stuck
trying to find something perfect.

Instead, try only searching for small areas:
We lose some precision for available spots, but
we gain more performance. This is especially noticeable
on high resolution displays.

We should also not start calculating for the
position from start, but from the position
of the item, otherwise we'll do a lot of work
for minimal precision gains.

M  +32   -39   components/containmentlayoutmanager/gridlayoutmanager.cpp
M  +1    -1    components/containmentlayoutmanager/gridlayoutmanager.h

https://invent.kde.org/plasma/plasma-workspace/-/commit/92b57ea3fda504e644dd55fd1a7fd8dee9304d27

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

Reply via email to