Bug 443968 - When switching activities with Plasma's "Walk through Activities" shortcut, sometimes a tiny "Plasma Desktop Workspace" window briefly appears
Summary: When switching activities with Plasma's "Walk through Activities" shortcut, s...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Activity Switcher sidebar (show other bugs)
Version: 5.23.0
Platform: Other Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
: 443941 444375 444815 447212 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-10-18 12:10 UTC by bastimeyer123
Modified: 2025-03-05 21:12 UTC (History)
22 users (show)

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


Attachments
Plasma Desktop Workspace task (28.95 KB, image/png)
2021-10-21 16:22 UTC, ]\/[ ]\/[ ]_ 1357
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bastimeyer123 2021-10-18 12:10:28 UTC
SUMMARY
This started happening after the 5.23.0 release. Not sure if this is only on the Wayland session.

Sometimes, when switching activities (via a hotkey), the animation starts lagging and a tiny 1x20px window with a grey background and the "Plasma Desktop Workspace" window title appears. This window is shown in the panel's task manager as it is a regular window type, and it is barely visible due to its size. When switching windows via alt+tab, this tiny 1x20px "Plasma Desktop Workspace" window is also shown, which is very annoying.

STEPS TO REPRODUCE
1. set up two activities with a hotkey for cycling through the activities
2. press hotkey a couple of times

OBSERVED RESULT
Animation starts lagging and the tiny "Plasma Desktop Workspace" window appears

SOFTWARE/OS VERSIONS
Linux: Arch
KDE Plasma Version: 5.23.0
KDE Frameworks Version: 5.87.0
Qt Version: 5.12.5

ADDITIONAL INFORMATION
Comment 1 Vlad Zahorodnii 2021-10-18 12:15:17 UTC
If I recall correctly, plasma creates an invisible window to receive key events when switching between activities.
Comment 2 Nate Graham 2021-10-18 16:31:33 UTC
Can confirm on Wayland.
Comment 3 Nate Graham 2021-10-18 17:02:31 UTC
*** Bug 443941 has been marked as a duplicate of this bug. ***
Comment 4 Oded Arbel 2021-10-18 18:07:55 UTC
Can confirm on X11
Comment 5 ]\/[ ]\/[ ]_ 1357 2021-10-21 16:21:11 UTC
I can confirm too
Comment 6 ]\/[ ]\/[ ]_ 1357 2021-10-21 16:22:25 UTC
Created attachment 142732 [details]
Plasma Desktop Workspace task
Comment 7 Pulse 2021-10-28 22:01:35 UTC
I'm on 5.23.1/Tumbleweed and not using activities. I get this icon/window randomly when switching between workspaces. [Imgur](https://imgur.com/htzooak)
Comment 8 electw 2021-11-06 02:31:37 UTC
Still on 5.23.2 in Neon
Comment 9 Nate Graham 2021-11-12 15:42:08 UTC
*** Bug 444815 has been marked as a duplicate of this bug. ***
Comment 10 Nate Graham 2021-11-12 15:42:34 UTC
*** Bug 444375 has been marked as a duplicate of this bug. ***
Comment 11 Nate Graham 2021-11-12 15:43:13 UTC
Raising priority due to the issue's visibility to users and number of duplicate reports.
Comment 12 rolltime 2021-11-15 18:21:59 UTC
Can confirm on EndeavourOS/Plasma 5.23.3. The window is named "Plasma" and stays visible in the taskbar.
Comment 13 David Edmundson 2021-11-29 10:09:29 UTC
It's from here:

SwitcherBackend::keybdSwitchedToAnotherActivity()
Comment 14 Alex 2021-12-02 09:14:05 UTC
I can confirm on Debian testing with plasma 5.23.3 and KF 5.88.0.
Comment 15 Nate Graham 2021-12-16 17:04:12 UTC
Git commit cad50cb7961b7ebe87b08334ea11ec2f83979680 by Nate Graham, on behalf of David Redondo.
Committed on 16/12/2021 at 16:39.
Pushed by ngraham into branch 'master'.

SwitcherBackend: Only create the workaround window on wayland

Not needed on X

M  +1    -1    imports/activitymanager/switcherbackend.cpp

https://invent.kde.org/plasma/plasma-desktop/commit/cad50cb7961b7ebe87b08334ea11ec2f83979680
Comment 16 Nate Graham 2021-12-16 17:14:35 UTC
Git commit c8bcd716800b1e842301fbef8a0adf16d9042eb1 by Nate Graham, on behalf of David Redondo.
Committed on 16/12/2021 at 17:14.
Pushed by ngraham into branch 'Plasma/5.23'.

SwitcherBackend: Only create the workaround window on wayland

Not needed on X


(cherry picked from commit cad50cb7961b7ebe87b08334ea11ec2f83979680)

M  +1    -1    imports/activitymanager/switcherbackend.cpp

https://invent.kde.org/plasma/plasma-desktop/commit/c8bcd716800b1e842301fbef8a0adf16d9042eb1
Comment 17 Patrick Silva 2021-12-20 15:34:15 UTC
*** Bug 447212 has been marked as a duplicate of this bug. ***
Comment 18 André M 2022-01-07 16:05:57 UTC
This still happens for me in NixOS, Plasma 5.23.5 Wayland. The attached patch explicitly affects only X11, so not sure why this bug got closed if the initial summary states this affects Wayland.

In my case, when trying to alternate between two activities with keyboard shortcut (Meta+Tab), sometimes this 1px-wide  window shows up on the current activity and "cancels" the switch, bringing me back to the activity I was trying to depart from, which is very annoying. Clicking on activity pager never causes this problem.
Comment 19 Oded Arbel 2025-01-17 10:10:17 UTC
This issue is back in Plasma 6.3 beta. It looks exactly the same except the task switcher entry is simply labeled "plasmashell". It also not "sometime" - this is 100% of the time, where the time it remains open change wildly from less than a second to a few seconds (doesn't seem related to load and I have a pretty beefy system).

System information:
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
Comment 20 Nate Graham 2025-03-04 18:05:46 UTC
How exactly are people switching activities to trigger this? Which exact global actions are you invoking using keyboard shortcuts?
Comment 21 Oded Arbel 2025-03-04 20:10:56 UTC
(In reply to Nate Graham from comment #20)
> How exactly are people switching activities to trigger this? Which exact
> global actions are you invoking using keyboard shortcuts?

I'm using Plasmashell's "Walk throught activities" (and not KWin's) custom shortcut, that I mapped to META+ALT+Tab
Comment 22 Nate Graham 2025-03-05 15:17:42 UTC
Thanks, I can reproduce the issue now. It seems to require the use of those shortcuts specifically, not the KWin-provided ones.
Comment 23 Oded Arbel 2025-03-05 21:12:32 UTC
(In reply to Nate Graham from comment #22)
> Thanks, I can reproduce the issue now. It seems to require the use of those
> shortcuts specifically, not the KWin-provided ones.

I actually just tried the kwin's "walk through activities" shortcuts, and they don't seem to do anything for me.