Bug 154592 - When using multiple monitors, the hamburger menu popup opens on a different screen (Linux)
Summary: When using multiple monitors, the hamburger menu popup opens on a different s...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
6.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 160914 (view as bug list)
Depends on:
Blocks: Multimonitor Notebookbar-Tabbed
  Show dependency treegraph
 
Reported: 2023-04-03 19:54 UTC by Rafael Lima
Modified: 2024-10-26 20:19 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Multimonitor setup (LO is on the left) (966.68 KB, image/png)
2023-04-03 19:54 UTC, Rafael Lima
Details
Multimonitor setup (LO is on the right) (1.77 MB, image/png)
2023-04-03 19:54 UTC, Rafael Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Lima 2023-04-03 19:54:16 UTC
Created attachment 186460 [details]
Multimonitor setup (LO is on the left)

Using the Tabbed UI, when you click the hamburger menu on a multi monitor setup, the popup menu opens on a different screen (not on the screen where LO is located).

For instance, suppose you have a two monitors setup, side by side. If LO is opened on the left screen, the hamburger menu will open on the right screen. And if LO is on the right screen, the hamburger menu will open on the left screen.

See attached screenshots for more detail.

This bug affects kf5, gtk3 and gen. I am using X11.

System info

Version: 7.5.2.2 (X86_64) / LibreOffice Community
Build ID: 50(Build:2)
CPU threads: 12; OS: Linux 5.19; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 4:7.5.2~rc2-0ubuntu0.22.10.1~lo1
Calc: threaded
Comment 1 Rafael Lima 2023-04-03 19:54:38 UTC
Created attachment 186461 [details]
Multimonitor setup (LO is on the right)
Comment 2 Rafael Lima 2023-04-03 20:31:55 UTC
I guess this bug only affects the tabbed UI.

I believe a fix is possible, since the hamburger menu in the sidebar works fine in multi monitor setups.
Comment 3 Stéphane Guillou (stragu) 2023-04-04 07:45:56 UTC
Reproduced on Wayland with:

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

Already in:

Version: 6.2.0.3
Build ID: 98c6a8a1c6c7b144ce3cc729e34964b47ce25d62
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3; 
Locale: en-AU (en_AU.UTF-8); UI-Language: en-US
Calc: threaded

But not with gtk2:

Version: 6.1.0.3
Build ID: efb621ed25068d70781dc026f7e9c5187a4decd1
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk2; 
Locale: en-AU (en_AU.UTF-8); Calc: group threaded

Rafael, I assume you are using GNOME? I've got Ubuntu 20.04 with GNOME 3.36.8 + Wayland.

(In reply to Rafael Lima from comment #0)
> If LO is
> opened on the left screen, the hamburger menu will open on the right screen.

This does depend on the relative layout of displays. If there isn't space in the right screen at that height, it might open in the correct screen.
Comment 4 Rafael Lima 2023-04-04 14:24:13 UTC
(In reply to Stéphane Guillou (stragu) from comment #3)
> Rafael, I assume you are using GNOME? I've got Ubuntu 20.04 with GNOME
> 3.36.8 + Wayland.

Actually I'm using KDE (Kubuntu 22.10 on X11). I tested gtk3 by testing SAL_USE_VCLPLUGIN=gtk3.

> This does depend on the relative layout of displays. If there isn't space in
> the right screen at that height, it might open in the correct screen.

True
Comment 5 Stéphane Guillou (stragu) 2024-05-02 23:57:05 UTC
*** Bug 160914 has been marked as a duplicate of this bug. ***
Comment 6 Stéphane Guillou (stragu) 2024-05-03 00:24:17 UTC
Still reproduced with:

Version: 24.2.2.2 (X86_64) and

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ce454f382d0d005dd3de021c7820be3ffa0bb582
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

Maybe should be compared to other menus on the right edge that behave as expected:
- Start Center hamburger
- Sidebar hamburger
- Tabbed menus under the hamburger/cog (like "Home")

Windows equivalent is bug 132139, keeping separate as I'm unsure if the different VCL plugins + OS's different multimonitor handling mean different fixes.