Bug 505474

Summary: When clicking on an app, Plasma switches back to previous activity
Product: [Plasma] kwin Reporter: luk <lukasz.tolwinski>
Component: activitiesAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: ivan.cukic, kdedev, nate
Priority: NOR    
Version First Reported In: 6.3.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description luk 2025-06-11 13:26:21 UTC
I have 2 activities and 2 desktops on them.

I see that when I change activities (Meta-A), I land not on the same desktop (so it's not only left or right, quite often I'm switched from left desktop to the right (and vice versa) - apart from changing activity) - it can be important here.

So when I'm switched to other activity and I click an app with a mouse (to get focus), I'm switched back to other activity !!
It happens every 2-3 time, so there is a pattern, I just didn't click for 10 minutes to find it :)

Plasma 6.3.5
Comment 1 luk 2025-06-11 13:27:56 UTC
I didn't have this issue a month or more before (so possibly it was introduced when I upgraded to Ubuntu 25.04 and Plasma 6.3.5)
Comment 2 luk 2025-06-11 13:41:02 UTC
Also A bit annoying is that virtual desktops switching (alongside acvtivities switching) is NOT CONSISTENT.
Sometimes it changes desktop (to last/previously used), sometimes NOT (probably when I switched activity by clicking notification first).
Comment 3 TraceyC 2025-06-12 16:54:41 UTC
Thanks for filing this bug report. Unfortunately there isn't enough information for us to try to figure out what's happening. I'm not able to reproduce this on git-master

Please add information about your system as requested in the bug report template. Copy and paste this with the information into a new comment.

SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version:
Comment 4 luk 2025-06-13 08:19:44 UTC
I do have that situation on 2 different PCs. They have the same setup:
Plasma 6.3.5
Frameworks 6.14.0
QT: 6.8.3
Wayland

Maybe it depends on a set of running apps. On activity 2 there is Firefox and Spotify
On the other Activity (1), there is Chrome, on Activity1 second desktop: Chrome, Idea.
Comment 5 luk 2025-06-13 08:25:51 UTC
one PC is running Kubuntu 25.04,  the other Ubuntu 25.04  (both get KDE from:  https://ppa.launchpadcontent.net/kubuntu-ppa/backports/ubuntu/ )
Comment 6 TraceyC 2025-06-13 20:06:54 UTC
Thanks for the additional information, that's helpful. 
When you say you switch activities, and then click an app - I assume this is in a Task Manager (Icons only or icons and text) - is this correct? If so can you attach a screenshot of the settings screen for the task manager - the Behavior tab?

To test, I assumed the task manager was used to focus an application, and set to 
- show applications on all desktops
- do not show apps in other activities
(let me know if your settings are different on your system)

I'm not able to reproduce this on Kubuntu 25.04, if I follow what I think you're describing

1. Opened Firefox on Activity 1, Desktop 1
2. Opened Kate on Activity 2, Desktop 2
3. Switched back to Activity 1 - I am on Activity 1 Desktop 1 at this point, and I see Firefox
Clicking the Firefox window or icon in the task manager does not switch to Activity 2

If I set the task manager to show only apps from the current desktop and activity, when I switch back to Activity 1, it's still on Desktop 2.
Comment 7 luk 2025-06-13 20:49:42 UTC
When I say switch activities - I press Meta-A
when I click the app - it's just a click inside app - to get a focus.
I'll try to reproduce it in a way I can describe it, or record a video.
Comment 8 TraceyC 2025-06-13 20:50:54 UTC
A video would be really good. Thanks!
Comment 9 luk 2025-06-13 20:51:59 UTC
I don't use Task Manager and all my apps are visible only on one desktop and one activity.
Exception is Chrome, which has one window on desktop 1 (activity 1) and another window on desktop 2 (activity 1).
Comment 10 Bug Janitor Service 2025-06-28 03:47:42 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2025-07-13 03:47:27 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.