Bug 483683

Summary: [Wayland] TasksModel.activeTask is invalid when xdg-desktop-portal is active
Product: [Plasma] plasmashell Reporter: antroids <publicantroids>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: nate, qydwhotmail
Priority: NOR Keywords: qt6, wayland-only
Version First Reported In: 6.0.0   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Google Chrome about://gpu
Chromium about://gpu

Description antroids 2024-03-15 15:23:26 UTC
Created attachment 167263 [details]
Google Chrome about://gpu

STEPS TO REPRODUCE
1. Install Task Manager widget
2. Open Google Chrome browser
3. Right-click, Save as..

OBSERVED RESULT
New task blinks in the Task Manager bus disappears and no tasks marked as active anymore

EXPECTED RESULT
Google Chrome or any new task should be active in the Task Manager

SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.5.0-21-generic (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 PRO 4650U with Radeon Graphics
Memory: 14.8 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 20UH001JRT
System Version: ThinkPad T14s Gen 1

ADDITIONAL INFORMATION
Works well in Chromium and Firefox.
Chrome arguments: %U --use-gl=angle --use-angle=gl --ignore-gpu-blocklist --disable-gpu-driver-bug-workaround --enable-features=VaapiVideoDecodeLinuxGL --enable-features=VaapiVideoEncoder --enable-features=VaapiVideoDecoder --disable-features=UseChromeOSDirectVideoDecoder
The same issue with Telegram Desktop.
Comment 1 antroids 2024-03-15 15:24:14 UTC
Created attachment 167264 [details]
Chromium about://gpu
Comment 2 Fushan Wen 2024-03-18 14:43:51 UTC
Cannot reproduce on X11
Comment 3 Nate Graham 2024-04-10 20:06:34 UTC
It's an issue on Wayland with the dialog not being marked as a dialog correctly. Now that the xdg-dialog-v1 Wayland protocol has been merged (see https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/228) it's up to Chromium to support it so that this can work as expected.