Bug 489223

Summary: Using a Plasma 6 desktop, a MarbleWidget shortly flashes up as an extra window after being instantiated
Product: [Applications] marble Reporter: Tobias Leupold <tl>
Component: generalAssignee: marble-bugs
Status: REPORTED ---    
Severity: normal CC: tl
Priority: NOR    
Version: 24.05.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: CMakeLists.txt
main.cpp
MainWindow.cpp
MainWindow.h

Description Tobias Leupold 2024-06-26 10:49:24 UTC
Created attachment 171004 [details]
CMakeLists.txt

Hi all :-)

When you run a Plasma 6 desktop and run a program using a MarbleWidget, the widget shortly flashes up as an extra window after being instantiated. I'll attach a minimal example demonstrating this.

I saw this exact behavior with another project, always happening when QWidget::show() was called before the widget was added to a layout. This either did not happen using a Plasma 5 desktop, or at least the flashing was not visible.

For this exact case, I noticed it whilst using KGeoTag. On Plasma 5, everything is normal as usual. When I start KGeoTag on Plasma 6, the MarbleWidget flashes. Just like with the to-be-attached demo.

Maybe, you want to to fix this.

Cheers, Tobias
Comment 1 Tobias Leupold 2024-06-26 10:49:44 UTC
Created attachment 171005 [details]
main.cpp
Comment 2 Tobias Leupold 2024-06-26 10:49:58 UTC
Created attachment 171006 [details]
MainWindow.cpp
Comment 3 Tobias Leupold 2024-06-26 10:50:12 UTC
Created attachment 171007 [details]
MainWindow.h