Bug 462111 - Clicking on any icon in the task manager starts a new window of said program (wayland)
Summary: Clicking on any icon in the task manager starts a new window of said program ...
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (other bugs)
Version First Reported In: git-stable-Plasma/5.26
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2022-11-21 23:20 UTC by Kurt Hindenburg
Modified: 2022-12-01 20:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.