Bug 491752

Summary: Second taskbar briefly ignores 'Show only tasks: From current screen'
Product: [Plasma] plasmashell Reporter: madness742
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kdedev, nate, qydwhotmail
Priority: NOR Keywords: multiscreen
Version First Reported In: 6.1.4   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: A video showcasing the bug. Pay close attention to the taskbar of the left monitor. The applications are being launched on the main monitor (right).

Description madness742 2024-08-15 15:17:02 UTC
Created attachment 172648 [details]
A video showcasing the bug. Pay close attention to the taskbar of the left monitor. The applications are being launched on the main monitor (right).

SUMMARY
When there are multiple taskbars across two or more screens, the option  'Show only tasks: From current screen' will not behave correctly. It will briefly show the application from a different screen before disappearing. 

STEPS TO REPRODUCE
1. Create a new default panel on a second monitor.
2. Right click on the task manager 
3. Select  Configure Icons-only Task Manager / Configure Icons-and-Text Task Manager (depending on the style, bug is visible on both)
4. Select behaviour.
5. Enable 'Show only tasks: From current screen'.

OBSERVED RESULT
The second taskbar is showing an application from the main taskbar for a brief second before disappearing. 

EXPECTED RESULT
The second taskbar should not show anything when  'Show only tasks: From current screen' is enabled and the application is launched on the main taskbar.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
This was tested on a Wayland session. The problem also occurs on openSUSE Tumbleweed.
Comment 1 TraceyC 2024-08-16 22:16:09 UTC
I can reproduce this reliably on 6.1.4 using the given steps
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2


Unfortunately, I can't try to reproduce on master right now. Clicking Configure for either task manager results in SIGSEGV (unrelated to this bug)