Bug 428516

Summary: The main window of Nextcloud-desktop does not appear at the right place under Wayland session
Product: [Plasma] plasmashell Reporter: Ahmed <ahmed.com>
Component: System Tray widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: justin.zobel, nate
Priority: NOR Keywords: wayland-only
Version First Reported In: 5.20.2   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ahmed 2020-10-31 15:50:29 UTC
SUMMARY


STEPS TO REPRODUCE
1. Start Wayland session.
2. Open Nextcloud-desktop.
3. left-click on its system-tray icon.

OBSERVED RESULT
The main window of Nextcloud-destkop sometimes appears in the upper-left corner of the screen, or in the down-right corner of the screen.

EXPECTED RESULT
The main window should appear exactly under the system-tray icon not far away from it.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon User Edition 5.20.2
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.0
Comment 1 Justin Zobel 2020-11-01 02:55:31 UTC
Confirmed on KDE Neon User Edition.
Comment 2 Nate Graham 2020-11-09 17:58:43 UTC
When you say "Main window" do you mean "context menu" or its actual main window? I ask because if it's the latter, then this is not the System Tray's fault because windows are not allowed to position themselves on Wayland; the compositor does all of that.
Comment 3 Ahmed 2020-11-09 18:02:45 UTC
Its actual main window not the context menu.
Comment 4 Nate Graham 2020-11-09 18:55:04 UTC
Then there's nothing we can do here, sadly. The Wayland compositor chooses where to locate the window according to its own placement modes. There's support in the works for letting the compositor save and restore windows' previous positions, but I don't think that windows are allowed to position themselves manually on Wayland.