Bug 473622 - A new panel is sometimes created on the primary screen, not the screen whose desktop you right-clicked on
Summary: A new panel is sometimes created on the primary screen, not the screen whose ...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (other bugs)
Version First Reported In: master
Platform: Arch Linux Other
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: multiscreen, qt6, regression
Depends on:
Blocks:
 
Reported: 2023-08-22 07:08 UTC by Fushan Wen
Modified: 2023-10-15 13:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fushan Wen 2023-08-22 07:08:27 UTC
SUMMARY
I want to create a new panel in the secondary screen, but it's not possible to do it directly using the desktop menu action.


STEPS TO REPRODUCE
1. Create an empty panel in the secondary screen
2. 
3. 

OBSERVED RESULT
The new panel is created in the primary screen

EXPECTED RESULT
The new panel is created in the secondary screen

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: plasma-workspace at 341e1db9a818460e2ec89d63f447e485bd785f15
plasma-framework at 75bb4d7c0cd64b5eb653555b27dd649228dfe335
plasma-desktop at 2cf107751d8737aa29a6dc485cd0459a6ae0366b
KDE Frameworks Version: plasma-framework at 
Qt Version: 6.5.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-08-22 17:04:23 UTC
Cannot reproduce in X11 with a whackadoodle mixed DPI setup (which I know is unsupported, but it's the only one I've got).
Comment 2 Nate Graham 2023-08-22 21:11:22 UTC
Cannot reproduce on Wayland either.
Comment 3 Fushan Wen 2023-08-23 00:55:19 UTC
Can always reproduce on X11, and it's a new user that almost doesn't touch anything.
Comment 4 Nate Graham 2023-09-08 17:51:30 UTC
I just managed to reproduce this while testing Bug 472832. When I tried to reproduce it again, it didn't happen. So it's intermittent.
Comment 5 Bug Janitor Service 2023-10-13 13:21:27 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3399
Comment 6 Fushan Wen 2023-10-15 13:39:15 UTC
Git commit 31830a672d49c74da81674673bf2ae72483d0cc8 by Fushan Wen.
Committed on 15/10/2023 at 15:23.
Pushed by fusionfuture into branch 'master'.

ShellCorona: make adding new panel follow cursor position

focusWindow is unreliable when it comes to the desktop window, and
using cursor position to decide adding panel to which screen makes more
sense since the context menu was opened there.
FIXED-IN: 6.0

M  +18   -1    shell/shellcorona.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/31830a672d49c74da81674673bf2ae72483d0cc8