Bug 478513 - Wallpaper Add toolbar disappears after resizing the window a lot
Summary: Wallpaper Add toolbar disappears after resizing the window a lot
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Image & Slideshow wallpaper plugins (show other bugs)
Version: 5.90.0
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-12-14 16:28 UTC by Andres Betts
Modified: 2024-11-05 16:51 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.1.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andres Betts 2023-12-14 16:28:17 UTC
SUMMARY
***
Under wayland and using the wallpaper KCM, when users go to the add button to add custom images to the list of wallpapers, for some reason the toolbar disappears if you add more than one image consecutively. I was able to reproduce the error a couple of times and it was solved by reopening system settings.

The toolbar should not disappear. I asked about this from other contributors who did not experience the same issue even though they were also in the unstable build for Plasma 6.
***

STEPS TO REPRODUCE
1. Access System Settings
2. Access wallpaper KCM
3. Choose to ADD custom images
4. Try until you notice the add button disappears (For me, this was after 2 images added consecutively)
Comment 1 Nate Graham 2023-12-15 20:12:48 UTC
I can reproduce this by rapidly resizing the window to be big and then small and then big again, and so on. Eventually it'll happen.
Comment 2 Méven Car 2023-12-18 11:28:11 UTC
(In reply to Nate Graham from comment #1)
> I can reproduce this by rapidly resizing the window to be big and then small
> and then big again, and so on. Eventually it'll happen.

FYI You reported this.
https://bugreports.qt.io/browse/QTBUG-117035

I believe that's the underlying issue.
Comment 3 Nate Graham 2023-12-20 19:43:32 UTC
Yeah, it's because of the lack of the feature I asked for in https://bugreports.qt.io/browse/QTBUG-117035 that we have to resort to an ugly positioning hack. Evidently the positioning hack breaks when the window is resized a lot, which is what this bug report is all about.

Ideally we wouldn't need the positioning hack because https://bugreports.qt.io/browse/QTBUG-117035 would be fixed/implemented. Then the toolbar could be implemented in a more technically correct way and this bug would disappear on its own.
Comment 4 Nate Graham 2024-11-05 16:51:30 UTC
The issue was worked around in our own code for Plasma 6.1.