Bug 155448 - Window does not unmaximize (normalize) when first opened in maximized state on GNOME-Wayland
Summary: Window does not unmaximize (normalize) when first opened in maximized state o...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.5.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Wayland GTK3
  Show dependency treegraph
 
Reported: 2023-05-23 11:47 UTC by Nolan Leasy
Modified: 2023-11-01 18:43 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 Nolan Leasy 2023-05-23 11:47:13 UTC
Description:
When a LibreOffice window was in the maximized state on last close, it correctly opens in a maximized state. However, it will not unmaximize (normalize) before (a) first sending an initial unmaximize message, (b) sending another maximize message and finally (c) sending a 2nd unmaximize message.

You get this behavior whether using a mouse double-click or keyboard shortcuts. If using the double-click method, it will require 3 double-clicks to unmaximize the window.

A left or right tile action also frees the window to be unmaximized (normalized).

An attempt to drag the window down, from maximized, presents the user with a window that is mostly off the screen.

Steps to Reproduce:
1. Maximize an open LibreOffice window and close it.

2. Re-open the same LibreOffice componenent (Calc, Writer or Impress), which will correctly open in the maximized state.

3. Attempt to unmaximize the window, which will produce a flicker as the window fails to unmaximize.

4. Attempt to maximize the window, which will leave it in the same maximized state. At this point the window can be unmaximized normally.

5. Unmaximize the window normally.

Actual Results:
The window will not unmaximize on first attempt.

Expected Results:
The window should unmaximize on first attempt.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
- This only affects freshly opened maximized windows. Once past this bug with the same instance, the same window maximizes and unmaximizes normally.

- The 'libreoffice-x11' package is installed.

- This seems to be a problem only with GNOME Wayland Sessions. I did NOT see this on GNOME Xorg/x11 or on KDE Wayland.

- I have reproduced this behavior on GNOME Wayland sessions in both the Fedora and openSUSE environments.

- The versions of LibreOffice used were all from the standard Fedora and openSUSE repositories.

- All recent versions are affected from what I can tell. I have reproduced the bug with Ver 7.4.6 and Ver 7.5.3.
Comment 1 Nolan Leasy 2023-05-23 12:08:16 UTC
- This is on GNOME (Wayland) version 43.
Comment 2 Nolan Leasy 2023-05-23 18:24:44 UTC
I can confirm that this is also a problem with LibreOffice 7.4.3 on GNOME 41.9 (Wayland). This was on openSUSE Leap 15.x and there is no 'libreoffice-x11' package installed.

Again, this problem does NOT present on any version of GNOME running an Xorg/x11 session. Only on Wayland.
Comment 3 Nolan Leasy 2023-07-24 20:03:16 UTC
Has anyone taken a look at this problem?

Does anyone care about this anomalous behavior?
Comment 4 Buovjaga 2023-11-01 18:43:02 UTC
Reproduced, used the method of double-clicking the title bar as there were no window controls. LibreOffice 7.6.2 gtk3, Debian 12, GNOME with Wayland.