Bug 462111

Summary: Clicking on any icon in the task manager starts a new window of said program (wayland)
Product: [Plasma] plasmashell Reporter: Kurt Hindenburg <khindenburg>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: nate
Priority: NOR Keywords: wayland-only
Version First Reported In: git-stable-Plasma/5.26   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Kurt Hindenburg 2022-11-21 23:20:39 UTC
STEPS TO REPRODUCE
1. Fresh login
2. Have the program already open (firefox/konsole) - open by session manager
3. Use shortcut to change virtual desktop - this seems to be required (shift+ctrl+Left/right arrow)
4. click on any task manager icon (firefox/konsole) that should change virtual desktop and open already opened window

OBSERVED RESULT
New window is opened on current virtual desktop

EXPECTED RESULT
Current opened window should open on its virtual desktop (ie not a new window)

This started in the past few weeks after updating system

PRETTY_NAME="KDE neon 5.26"
NAME="KDE neon"
VERSION_ID="22.04"
Comment 1 Kurt Hindenburg 2022-11-25 17:59:40 UTC
I can't produce on plasma/x11 - just wayland
Comment 2 Nate Graham 2022-11-30 19:17:31 UTC
In your Task Manager settings window's Behavior page, do you have "show only tasks: from current desktop" checked? And are the apps/windows in question bound to all desktops, or only one?
Comment 3 Kurt Hindenburg 2022-12-01 01:25:24 UTC
(In reply to Nate Graham from comment #2)
> In your Task Manager settings window's Behavior page, do you have "show only
> tasks: from current desktop" checked? And are the apps/windows in question
> bound to all desktops, or only one?

I have Show only tasks: from current activity checked.  I don't recall setting that so maybe that's the default?
The 2 apps I use to reproduced are pinned to different one desktop (konsole 1; firefox 3).  The new windows ignore the pin settings and create a new window on the current desktop (after some event happens which I think is shortcut to change desktops).
Comment 4 Nate Graham 2022-12-01 20:38:37 UTC
It is the default setting, yes.

Based on that information, I think this is the intended behavior. With those settings, the Task Manager items for apps in question aren't entries of open windows, but rather launchers. So when you use one of them to launch a new instance of the app, it seems fairly logical that it would appear in the current virtual desktop.

If you don't like this behavior, I would recommend unchecking "show only tasks: from current desktop". That way the Task Manager items for open apps in a different virtual desltop will switch to existing windows/instances rather than launching new instances in the current virtual desktop.