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

--- Comment #38 from Aaron Rainbolt <arraybo...@gmail.com> ---
Looking at my previous comment, it may appear misleading - the comment within
the "else if" block actually applies to the following "else" block if I'm
understanding correctly. Here's the snippet of code (including the offending
else if block) with more context:

>         } else if (m_layoutChanges & SizeChange) {
>             const QRect newGeom(x(), y(), width(), height());
>             // The size has been restored from the last one it has been 
> saved: restore that exact same layout
>             if (newGeom.size() == m_savedSize) {
>                 m_layoutManager->resetLayoutFromConfig();
>    
>                 // If the resize is consequence of a screen resolution 
> change, queue a relayout maintaining the distance between screen edges
>             } else if (!m_geometryBeforeResolutionChange.isEmpty()) {
>                 m_layoutManager->layoutGeometryChanged(newGeom, 
> m_geometryBeforeResolutionChange);
>                 m_geometryBeforeResolutionChange = QRectF();
>    
>                 // Heuristically relayout items only when the plasma startup 
> is fully completed
>             } else {
>                 polish();
>             }
>         }
>         m_layoutChanges = NoChange;
>     });

From
https://invent.kde.org/plasma/plasma-workspace/-/blob/Plasma/5.25/components/containmentlayoutmanager/appletslayout.cpp,
lines 76 to 93.

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

Reply via email to