[kwin] [Bug 478097] In WindowHeap-based effects, expanded windows can't decide their position when switching the desktop, which makes them twitch

2024-02-23 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=478097

Nate Graham  changed:

   What|Removed |Added

   Version Fixed In||6.1

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

[kwin] [Bug 478097] In WindowHeap-based effects, expanded windows can't decide their position when switching the desktop, which makes them twitch

2024-02-19 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=478097

fanzhuyi...@gmail.com changed:

   What|Removed |Added

 Resolution|--- |FIXED
  Latest Commit||https://invent.kde.org/plas
   ||ma/kwin/-/commit/c3cda8b62a
   ||d3825883826bdd1928c8761aeb0
   ||26d
 Status|REPORTED|RESOLVED

--- Comment #1 from fanzhuyi...@gmail.com ---
Git commit c3cda8b62ad3825883826bdd1928c8761aeb026d by Yifan Zhu.
Committed on 19/02/2024 at 11:46.
Pushed by fanzhuyifan into branch 'master'.

effects/overview: implement new layout algorithm

Replace old "closest" and "natural" layout algorithms with new layout
algorithm. The new layout algorithm tries to
- use screen space efficiently, given diverse geometries of windows
- be aesthetically pleasing
- and minimize movement of windows from initial positions.

More concretely, find a layered layout, where each layer, or strip, is a
row or column. Ensure that different strips have similar widths, and use
binary search to find a packing with similar aspect ratio to the layout
area. Within each strip, minimize horizontal movement (for rows) or
vertical movement (for columns) of windows.

Run time is O(n) (up to log factors), where n is the number of windows.
Related: bug 450263, bug 477833, bug 477830, bug 453749

M  +6-27   src/plugins/overview/kcm/overvieweffectkcm.ui
M  +0-3src/plugins/overview/overviewconfig.kcfg
M  +0-14   src/plugins/overview/overvieweffect.cpp
M  +0-6src/plugins/overview/overvieweffect.h
M  +0-1src/plugins/overview/qml/main.qml
M  +436  -399  src/plugins/private/expolayout.cpp
M  +204  -28   src/plugins/private/expolayout.h
M  +2-2src/plugins/private/qml/WindowHeap.qml
M  +4-25   src/plugins/windowview/kcm/windowvieweffectkcm.ui
M  +0-1src/plugins/windowview/qml/main.qml
M  +0-3src/plugins/windowview/windowviewconfig.kcfg
M  +0-14   src/plugins/windowview/windowvieweffect.cpp
M  +0-6src/plugins/windowview/windowvieweffect.h

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

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

[kwin] [Bug 478097] In WindowHeap-based effects, expanded windows can't decide their position when switching the desktop, which makes them twitch

2024-01-17 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=478097

Nate Graham  changed:

   What|Removed |Added

  Component|effects-overview|effects-window-management
Summary|Expanded windows in preview |In WindowHeap-based
   |and desktop grid can't  |effects, expanded windows
   |decide their position when  |can't decide their position
   |switching the desktop,  |when switching the desktop,
   |which makes them twitch |which makes them twitch
 CC||n...@kde.org

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