Bug 502260 - Floating close button shows incorrectly when resizing
Summary: Floating close button shows incorrectly when resizing
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: Master
Platform: Other Linux
: NOR normal
Target Milestone: Not decided
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-31 22:21 UTC by David Edmundson
Modified: 2025-04-10 12:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Files showing the floating button (2.97 MB, application/gzip)
2025-03-31 22:21 UTC, David Edmundson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Edmundson 2025-03-31 22:21:36 UTC
Created attachment 179899 [details]
Files showing the floating button

If we have an application with a sidebar that chooses to not show the sidebar when in a collapsed view, an incorrect floating X appears during the transition.

This X button would be used when a transient pop-out sidebar would be used, but that doesn't make sense when collapsing the sidebar when it wasn't showing previously.

I have attached a slow motion zip of images that shows the problem.
Comment 1 Bug Janitor Service 2025-04-07 13:42:47 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kirigami/-/merge_requests/1756
Comment 2 Marco Martin 2025-04-10 12:06:26 UTC
Git commit c2763d5246f8d2dd39308c90865e45ec88355b9a by Marco Martin.
Committed on 10/04/2025 at 12:06.
Pushed by mart into branch 'master'.

Polish drawer handle appear/disappear

tweak handle visibility and opacity to noever make it appear
and disappear brutally.
bind opacity of background to position when there is an handle anchor and
only show it on modal dialogs. It also stops flashing it
when it goes from modal to non modal and vice versa

M  +3    -1    src/controls/OverlayDrawer.qml
M  +16   -1    src/controls/templates/OverlayDrawer.qml

https://invent.kde.org/frameworks/kirigami/-/commit/c2763d5246f8d2dd39308c90865e45ec88355b9a