Bug 498788 - [6.3 beta] VirtualDesktopSwitch plugin is extremely unreliable
Summary: [6.3 beta] VirtualDesktopSwitch plugin is extremely unreliable
Status: RESOLVED INTENTIONAL
Alias: None
Product: kwin
Classification: Plasma
Component: activities (other bugs)
Version First Reported In: git master
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-17 10:05 UTC by Oded Arbel
Modified: 2025-01-22 12:45 UTC (History)
1 user (show)

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


Attachments

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