Bug 147297

Summary: Context menus and submenus open on other monitor (or disappear) when there's not enough space on the display LibreOffice is on
Product: LibreOffice Reporter: Hari Rana <theevilskeleton>
Component: UIAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: stephane.guillou
Priority: medium    
Version: 6.2.0.3 release   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=113049
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 100156, 104160    
Attachments: LibreOffice maximized on first monitor with context menu open
Windowed LibreOffice on first monitor with context menu open
LibreOffice maximized on second monitor with context menu open

Description Hari Rana 2022-02-08 22:49:15 UTC
Description:
Whenever I open context menus, LibreOffice will open the menus or submenus on my next monitor. Furthermore, LibreOffice opens context menus outside of the applications itself.

Steps to Reproduce:
1. Use Wayland
2. Open a context menu or submenu on the right side of the screen
3. Notice the menu opening up in the other monitor

Actual Results:
The context menu opens on the other monitor.

Expected Results:
The context menu should open in the same monitor. Furthermore, the context menu should be inside LibreOffice (like most apps) or halfway outside (like recent GNOME (GTK 4) apps), not completely outside.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
This only happens on context menus at the right hand side of LibreOffice. And this only happens in Wayland, not in X11 (or Xwayland).

I have only tested it on LibreOffice Flatpak.
Comment 1 Hari Rana 2022-02-08 22:54:13 UTC
Created attachment 178152 [details]
LibreOffice maximized on first monitor with context menu open
Comment 2 Hari Rana 2022-02-08 22:55:33 UTC
Created attachment 178153 [details]
Windowed LibreOffice on first monitor with context menu open
Comment 3 Hari Rana 2022-02-08 22:56:52 UTC
Created attachment 178154 [details]
LibreOffice maximized on second monitor with context menu open
Comment 4 Stéphane Guillou (stragu) 2022-12-01 11:12:47 UTC
I can reproduce with:

Version: 7.5.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 1a5d548b96d86ad7ca04c2b23dc18517a538a998
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

On an Ubuntu 20.04 Wayland session.

Can you please share the info in Help > About LibreOffice?
Thank you!
Comment 5 Stéphane Guillou (stragu) 2023-07-27 10:06:04 UTC
I also noticed the dropdown can entirely disappear in some cases, when there is a bit of space between the window and the edge between the two displays.

Reproduced in recent master build, as well as 6.2.0.