Bug 448880

Summary: Activity switcher sidebar is not dismissed automatically after switching
Product: [Plasma] plasmashell Reporter: Kishore Gopalakrishnan <kishore96>
Component: Activity Switcher sidebarAssignee: Ivan Čukić <ivan.cukic>
Status: CONFIRMED ---    
Severity: minor CC: isma.af, justin, kde, nfsmwlin, plasma-bugs-null, wadja
Priority: NOR Keywords: regression
Version First Reported In: 5.23.90   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Kishore Gopalakrishnan 2022-01-21 13:12:19 UTC
SUMMARY
Clicking on a different activity in the activity switcher no longer dismisses the switcher after switching. One has to move the focus to another window to dismiss the switcher.

STEPS TO REPRODUCE
1. In System Settings > Workspace Behaviour > Activities > Switching, disable 'remember current virtual desktop for each activity'
2. Open the activity manager sidebar (Meta + Q)
3. Click on another activity to activate it

OBSERVED RESULTS
The activity changes, but the sidebar still persists until the user changes the focus to another window.

EXPECTED RESULTS
The sidebar should get dismissed once the user switches to a different activity.

SYSTEM INFORMATION
Operating System: Arch Linux
KDE Plasma Version: 5.23.90
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.0-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
Memory: 21.5 GiB of RAM
Graphics Processor: AMD Radeon Vega 8 Graphics

ADDITIONAL INFORMATION
Downgrading to 5.23.5 fixes the issue
Comment 1 wadja 2022-02-17 14:19:51 UTC
same problem repeatable on Fedora 35 / Wayland:

Operating System: Fedora Linux 35
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.7-200.fc35.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × AMD A8-3870 APU with Radeon(tm) HD Graphics
Memory: 11.7 GiB of RAM
Graphics Processor: AMD BONAIRE
Comment 2 kde 2023-04-20 13:52:41 UTC
I have this issue too and not sure but it might be an issue when changing activity and also virtual desktops at the same time.

Kernel: 6.2.11-arch1-1
DE: Plasma 5.27.4 
wayland
Comment 3 Justin Zobel 2024-09-02 07:45:11 UTC
The 'remember current virtual desktop for each activity' is no longer present in Plasma 6 git master (or at least I can't seem to find it) but I tested the Activity switching and the Activity Switcher bar does not go away.
Comment 4 Ismael Asensio 2024-09-03 01:08:57 UTC
Cannot reproduce on wayland master.

 (In reply to Justin Zobel from comment #3)
> The 'remember current virtual desktop for each activity' is no longer
> present in Plasma 6 git master (or at least I can't seem to find it) but I
> tested the Activity switching and the Activity Switcher bar does not go away.

Yes, this setting is no longer present but the behavior should default to the previous "true". Might worth checking if somehow it's still used internally in some place and didn't get reset
Comment 5 Justin Zobel 2024-09-03 01:18:48 UTC
I don't see that setting listed anywhere in ~/.config:

cat kactivitymanager*
[Plugin-org.kde.ActivityManager.Resources.Scoring]
off-the-record-activities=
[Favorites-org.kde.plasma.kickoff.favorites.instance-5-5b4a182e-a79f-41ea-b028-94e70d48685b]
ordering=preferred://browser,applications:org.kde.kontact.desktop,applications:systemsettings.desktop,applications:org.kde.dolphin.desktop

[Favorites-org.kde.plasma.kickoff.favorites.instance-5-global]
ordering=preferred://browser,applications:org.kde.kontact.desktop,applications:systemsettings.desktop,applications:org.kde.dolphin.desktop
[LastUsed]
5b4a182e-a79f-41ea-b028-94e70d48685b=1725278138
7f96deb5-6b08-4aed-bea5-2ca024fc383e=1725278138
[activities]
5b4a182e-a79f-41ea-b028-94e70d48685b=Default
7f96deb5-6b08-4aed-bea5-2ca024fc383e=Test

[activities-icons]
7f96deb5-6b08-4aed-bea5-2ca024fc383e=activities

[main]
currentActivity=7f96deb5-6b08-4aed-bea5-2ca024fc383e
Comment 6 Justin Zobel 2024-09-03 01:22:12 UTC
I just removed the contents of ~/.config (test user only no losses) and the Activity Bar still stays on screen for me until I click on the desktop or another window.

I wonder if there's something stored in ~/.local/state or something.