Bug 155114 - Undocked toolbar is not movable in gtk3 ui with wayland
Summary: Undocked toolbar is not movable in gtk3 ui with wayland
Status: RESOLVED DUPLICATE of bug 114983
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha0+
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-01 20:54 UTC by Hossein
Modified: 2023-10-22 20:55 UTC (History)
3 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 Hossein 2023-05-01 20:54:56 UTC
Description:
After undocking the "Toolbox" toolbar from LibreOffice, it is no longer movable in gtk3 ui with wayland. This problem does not happen in gtk3 X11, Windows, and gen UI where moving is possible.

Steps to Reproduce:
1. Open LibreOffice with gtk3 ui on Wayland
2. Open "Tools > Macros > Edit Macros"
3. Right click on the tab bar on the bottom of the screen, select "Insert BASIC Dialog"
4. Right click on the "Toolbox" toolbar on the bottom, uncheck "Lock toolbar position" by clicking on this context menu option
5. Right click on the "Toolbox" toolbar again, select "Undock Toolbar".
6. Try to move the undocked "Toolbox" toolbar

The goal would be creating something like this:

Dialog Editor
https://wiki.openoffice.org/wiki/File:Documentation_basicguide_dlg_01.gif

Actual Results:
You can not move the undocked window of the "Toolbox" toolbar.

Expected Results:
You should be able to move the toolbar, just like gtk3 X11, Windows, and gen UI where moving is possible.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 57f46a5a64f4e3bca2f0a52309ca7d201c1e2372
CPU threads: 12; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: CL threaded
Comment 1 Stéphane Guillou (stragu) 2023-05-02 15:23:40 UTC
Reproduced with:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: fb3a6b82b55a298eabf8f431f1451dc826642acd
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 Ubuntu 20.04 with GNOME 3.36.8 + Wayland.

This is the case with any toolbar I've tested.
Very much related to bug 114983, possibly a duplicate.
Comment 2 Stéphane Guillou (stragu) 2023-05-02 15:38:37 UTC
As mentioned by Maxim in other reports, the difficulty comes from Wayland:
- bug 152088 comment 10
- bug 113330 comment 4

Docking/undocking under Wayland is supposed to be disabled since a6d324f30bd5cfd09d54614d8df67b7857550429.
Caolán, what do you think? Should the context menu's Undock be somehow removed under Wayland?
Comment 3 Buovjaga 2023-05-02 16:12:20 UTC
(In reply to Stéphane Guillou (stragu) from comment #2)
> As mentioned by Maxim in other reports, the difficulty comes from Wayland:
> - bug 152088 comment 10
> - bug 113330 comment 4
> 
> Docking/undocking under Wayland is supposed to be disabled since
> a6d324f30bd5cfd09d54614d8df67b7857550429.
> Caolán, what do you think? Should the context menu's Undock be somehow
> removed under Wayland?

Hey, now I remembered just seeing this:
https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/204

Add xdg-toplevel-drag protocol

This protocol allows applications to request that a window is moved at the same time as a drag operation - effectively dragging windows. With this features such as detaching a tab from a window and reattaching it, dragging tabs between windows or (un)dockable tool windows can be implemented. Based on the previously proposed extended drag protocol but trimmed down.
---

It has implementations in Qt, KWin and Chromium.
Comment 4 Stéphane Guillou (stragu) 2023-10-22 20:55:58 UTC
Let's consolidate into bug 114983.

*** This bug has been marked as a duplicate of bug 114983 ***