Bug 159948 - Floating navigator window changes position/monitor while window focus changes (gtk3)
Summary: Floating navigator window changes position/monitor while window focus changes...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
24.2.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 161263 (view as bug list)
Depends on:
Blocks: Navigator GTK3 Multi-Window
  Show dependency treegraph
 
Reported: 2024-02-28 20:20 UTC by Peter Gervai
Modified: 2024-05-26 13:02 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Gervai 2024-02-28 20:20:51 UTC
Description:
(I have tried to search for this, found no matching issue, but I have realised that there are a large amount of similar issues about floating navigator. Feel free to join into one, if you think it's the same.)

Floating navigator doesn't handle well multiple open documents. It tries very hard to redraw, reposition, which combined with focus-follows-mouse can cause unenjoyable effects and slowdown, but that's kind of expected. (Unfloating it stops continuous redraw since then every window has its own navigator instead of one common window.)

However when I have multiple documents open on multiple monitors (xorg randr) and all of them have a floating navigator (in this mode all of the documents have one floating navigator which content is changed on every focus change) then navigator also changes window position, namely moved from the side of monitor1 (where the focus was) to the center of monitor2 (where the new focused document was). On further focus changes it seems to stay there. Moving it back, however, repeats the move on the next focus change again.


Steps to Reproduce:
1. open doc1 on monitor1, open floating navigator, move it to the right side
2. open doc2 on monitor2, open floating navigator, move it to the right side of monitor1 if it's not there
3. change focus between doc1 and doc2, and navigator may move to monitor2 middle when focusing doc2

Actual Results:
Navigator moves over the middle of monitor2

Expected Results:
It should keep size and position.


Reproducible: Sometimes


User Profile Reset: No

Additional Info:
Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: 420(Build:3)
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: hu-HU (en_US.UTF8); UI: en-US
Debian package version: 4:24.2.0-1
Calc: threaded

This is xorg 1.21.1.9, Xfce4 4.18
Comment 1 wjsim 2024-03-13 18:42:53 UTC
Hey there, I actually can't seem to reproduce it no matter how many times I shift the focus between the two undocked navigator menu. It always keeps the size and position for me on these versions:

Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6a064b1967e06e40be40817deff99d00c1a8554f
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 2 Stéphane Guillou (stragu) 2024-05-26 12:27:40 UTC
*** Bug 161263 has been marked as a duplicate of this bug. ***
Comment 3 Stéphane Guillou (stragu) 2024-05-26 12:34:56 UTC
Confirmed via duplicate, and I can also see the Navigators constantly popping up again at a different location every time the window is switched. No need for a multi-monitor setup, I can see it happen with two Writer documents the halves of one display, both using a floating monitor.

Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
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

Same happens in Calc -> not Writer-specific.

Not reproduced with gen or kf5 VCL plugins -> gtk3-specific.