Bug 498788

Summary: [6.3 beta] VirtualDesktopSwitch plugin is extremely unreliable
Product: [Plasma] kwin Reporter: Oded Arbel <oded>
Component: activitiesAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: major CC: notmart
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Oded Arbel 2025-01-17 10:05:54 UTC
SUMMARY

I have, in ~/.config/kactivitymanagerdrc, the following:

[Plugins]
org.kde.ActivityManager.VirtualDesktopSwitchEnabled=true

Which is rely on for the activity manager to "remember" which virtual desktop was active on each activity, so that switching between activities bring me back to ... ehm... the activity I was doing previously on that activity. This has never been 100% reliable on Plasma 5 and 6, but with the new 6.3 beta I actually had to go back and check that it is on, a few times, because it doesn't seem to work at all.

After a lot of testing I figured out that the VirtualDesktopSwitch plugin is on - as it works in 1 time out of every dozen or so switches.

STEPS TO REPRODUCE
1. have 2 or more activity, with 2 or more virtual desktops 
2. Start an application on activity 1 on VD 1, and another application on activity 2 on VD 2
3. Go to activity 1 and focus the application on VD 1
4. Go to activity 2 and focus the application on VD 2
5. Switch back to activity 1

OBSERVED RESULT
Most of the time, VD 2 will remain active after switching to activity 1

EXPECTED RESULT
The virtual desktop should switch to VD 1

SOFTWARE/OS VERSIONS
Operating System: KDE neon Testing Edition
KDE Plasma Version: 6.2.90
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.1
Kernel Version: 6.8.0-51-generic (64-bit)
Graphics Platform: Wayland
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Memory: 31.0 GiB of RAM
Graphics Processor 1: Intel® Graphics
Graphics Processor 2: NVIDIA RTX A2000 8GB Laptop GPU

ADDITIONAL INFORMATION
Could this possibly be related to the behavior in bug #443968 - which also came back with the Plasma 6.3 beta?
Comment 1 Marco Martin 2025-01-21 14:46:08 UTC
This feature has been removed in the commit 1ee4523a90 in kactivitymanagerd

also we wouldn't have at the moment any mechanism to make it work on Wayland
Comment 2 Oded Arbel 2025-01-22 12:45:07 UTC
(In reply to Marco Martin from comment #1)
> This feature has been removed in the commit 1ee4523a90 in kactivitymanagerd
> 
> also we wouldn't have at the moment any mechanism to make it work on Wayland

I find it hilarious that the bug referred to in kactivitymanagerd MR!33 is a bug I reported 😅.

So, Marco, what you are saying is that this bug should be reported against kwin?