Bug 502656

Summary: Activity Selector panel misaligned after update (Wayland, multi-monitor)
Product: [Plasma] plasmashell Reporter: NitramO <m.benjenec>
Component: Activity Switcher sidebarAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: gronslet, helgus.albinus, ivan.cukic, kdedev, nate, niccolo.venerandi
Priority: NOR Keywords: multiscreen, regression
Version First Reported In: 6.3.4   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=480890
Latest Commit: Version Fixed In: 6.3.5
Sentry Crash Report:
Attachments: Image of the issue.
Image of wrongly placed Activity selector
Image of the issue on the laptop screen (currently not the primary)
Full 3 monitor screenshot: left=laptop, middle=primary, right=vertical (in reduces size, jpg)

Description NitramO 2025-04-11 01:20:07 UTC
Created attachment 180162 [details]
Image of the issue.

SUMMARY  
After a recent update on KDE Neon (Wayland session), the Activity Selector panel is no longer anchored to the left side of the screen. Instead, it appears floating and misaligned, sometime stuck on the right edge of the screen. This behavior was not present before the update. I am using a multi-monitor setup (3 monitors).

I initially asked about this on bug 502375 (https://bugs.kde.org/show_bug.cgi?id=502375), but was told the symptoms seem different, so this may be a separate issue.

STEPS TO REPRODUCE  
1. Use KDE Neon with Wayland session and 3 monitors  
2. Press the Meta + A or Meta + Q keyboard shortcut to open the Activity Selector  
3. Observe the position of the Activity Selector panel  

OBSERVED RESULT  
The panel appears floating on the right side of the screen, no longer docked or anchored to the left side as it used to be.

EXPECTED RESULT  
The Activity Selector panel should be correctly anchored to the left side of the screen.

SOFTWARE/OS VERSIONS  
Windows: N/A  
macOS: N/A  
Linux/KDE Plasma: KDE neon 6.3  
KDE Plasma Version: 6.3.4  
KDE Frameworks Version: 6.12.0  
Qt Version: 6.8.2  
Kernel Version: 6.11.0-21-generic (64-bit)  
Graphics Platform: Wayland  

ADDITIONAL INFORMATION  
- Forum thread with screenshot: https://discuss.kde.org/t/activity-selector-panel-misaligned-no-longer-left-anchored-after-update-kde-neon-wayland/32641  
- I asked about this on bug 502375 (https://bugs.kde.org/show_bug.cgi?id=502375), and was told the symptoms are different, so it might be a different issue.  
- Screenshot attached (see image)
Comment 1 MartinG 2025-04-11 14:15:51 UTC
I can confirm this behavior, but on Fedora 41 (see versions below). I use two external monitors. Recently, I guess with the latest update, the Activity panel (I use meta+q (aka super+q) to bring it up) - it shows up in the wrong place, as a standalone "window" instead of appearing on the left side on the active monitor - or it doesn't show at all. I have had problems before to get the panel to show, and have then made it work by first setting focus to the desktop (by left clicking on the background with the mouse), and then pressing meta+q. This, however, does not work on all monitors. Pressing meta+tab (super+tab) still works to switch between activities.

Related, but maybe another issue: I sometimes lose windows to locations where I can no longer move them back to the screens I have. This happens after disconnecting external displays, but is also a problem when external displays are connected. I am not able to move the windows back to active screen by eg. alt+F3, more actions, move - it is impossible to drag the windows. This should probably be filed as a separate bug, maybe it already exists.

$ rpm -qa|grep libplasma
libplasma-6.3.4-1.fc41.x86_64

$ rpm -qa|grep activi
kf5-kactivities-5.116.0-2.fc41.x86_64
kf5-kactivities-stats-5.116.0-2.fc41.x86_64
plasma-activities-6.3.4-1.fc41.x86_64
plasma-activities-stats-6.3.4-1.fc41.x86_64
kactivitymanagerd-6.3.4-1.fc41.x86_64
Comment 2 MartinG 2025-04-11 14:20:01 UTC
Created attachment 180174 [details]
Image of wrongly placed Activity selector
Comment 3 MartinG 2025-04-11 14:20:39 UTC
Created attachment 180175 [details]
Image of the issue on the laptop screen (currently not the primary)
Comment 4 TraceyC 2025-04-11 15:06:40 UTC
Confirmed on git-master
Comment 5 MartinG 2025-04-11 15:30:27 UTC
Created attachment 180176 [details]
Full 3 monitor screenshot: left=laptop, middle=primary, right=vertical (in reduces size, jpg)
Comment 6 MartinG 2025-04-11 15:34:46 UTC
As mentioned in https://bugs.kde.org/show_bug.cgi?id=502375#c3 the "fix" in https://bugs.kde.org/show_bug.cgi?id=480890#c5 caused the issue of wrong placement of the Activity sidebar. These lines?:
https://invent.kde.org/plasma/plasma-desktop/-/commit/12d73b182940e9f081da7c043204033af6526027 

Should something be reverted here to make it work as it should?
Comment 7 Bug Janitor Service 2025-04-13 20:52:14 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2945
Comment 8 Niccolò Venerandi 2025-04-14 18:10:59 UTC
Git commit 515af63832d9c16b8f440b0d6880787bd9c5f761 by Niccolò Venerandi.
Committed on 14/04/2025 at 18:10.
Pushed by niccolove into branch 'Plasma/6.3'.

Avoid double-addition of x coordinate of ActivitySwitcher

The current code was adding the x coordinate of the screen
geometry two times, in the screenGeometry variable and in
the code to calculate the x coordinate.
Related: bug 502375


(cherry picked from commit 8843a89f11afe4ce2334165438c3669f1eadc81b)

Co-authored-by: Niccolò Venerandi <niccolo@venerandi.com>

M  +1    -1    desktoppackage/contents/views/Desktop.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/515af63832d9c16b8f440b0d6880787bd9c5f761
Comment 9 Niccolò Venerandi 2025-04-14 18:46:41 UTC
Git commit 8843a89f11afe4ce2334165438c3669f1eadc81b by Niccolò Venerandi.
Committed on 14/04/2025 at 18:09.
Pushed by niccolove into branch 'master'.

Avoid double-addition of x coordinate of ActivitySwitcher

The current code was adding the x coordinate of the screen
geometry two times, in the screenGeometry variable and in
the code to calculate the x coordinate.
Related: bug 502375

M  +1    -1    desktoppackage/contents/views/Desktop.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/8843a89f11afe4ce2334165438c3669f1eadc81b
Comment 10 Nate Graham 2025-05-08 15:19:30 UTC
*** Bug 503913 has been marked as a duplicate of this bug. ***