Bug 125543 - unmaximizing the window reduces to minimal width and height, making window barely visible (Linux-only, steps in comment 35)
Summary: unmaximizing the window reduces to minimal width and height, making window ba...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
6.0.0.3 release
Hardware: All Linux (All)
: high normal
Assignee: Amin Irgaliev
URL:
Whiteboard: target:24.2.0 target:7.6.2
Keywords:
: 104371 134315 136655 136662 145545 148637 150079 151313 158964 (view as bug list)
Depends on: 97894
Blocks: Maximized-Window
  Show dependency treegraph
 
Reported: 2019-05-28 07:50 UTC by Heiko Tietze
Modified: 2024-03-21 12:55 UTC (History)
30 users (show)

See Also:
Crash report or crash signature:


Attachments
screenshot of minimised Calc window on Ubuntu 18.04 (84.70 KB, image/png)
2021-11-23 06:28 UTC, Stéphane Guillou (stragu)
Details
Pix of the intensely small LibreOffice window (216.27 KB, image/png)
2022-01-17 23:57 UTC, Michael Turner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Tietze 2019-05-28 07:50:09 UTC
With a fresh profile, modules start maximized. That's not a good window size for large screens, so users have to resize. Doing this with Calc ends up in a tiny and hard to spot square (title bar only). We should a) use a default windows size according the OS and b) at least define a minimum size for Calc. AFAIR, it's not an issue for other modules.
Comment 1 Usama 2019-06-16 03:43:24 UTC
Hello Heiko,
Thank you for reporting this. I confirm it with:
Version: 6.3.0.0.alpha1+
Build ID: 77ae0abe21f672cf4b7d2e069f1d40d20edc49a7
CPU threads: 4; OS: Linux 4.9; UI render: default; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-05-31_15:33:33
Locale: en-GB (en_GB.utf8); UI-Language: en-US
Calc: threaded

When minimizing it the window size changes to really tiny square around 12px.

Regarding starting as maximized I don't see it as an issue because the window size will be preserved for the next start. User will only have to change it once and most people don't have large screens.
Comment 2 Heiko Tietze 2019-06-27 08:04:30 UTC
Since Xisco requests input from UX, let's talk about. I work on a large super-wide screen where the modules are set to the maximum screen size - makes not much sense and I always resize first to ~1600x1200px, which is a 4/3 ratio. 

At least Windows has a application size policy with PreferredLaunchViewSize and we should follow this.

Last but not least we define as minimum required resolution 1280x768px in [1], that could also be taken into account.

Of course, the actual value has to be responsive to the resolution, and the default scaling should work with HiRes too (8k screens might come in some years). And we should maximize in case of very small screens.

[1] https://wiki.documentfoundation.org/Design/MenuBar
Comment 3 Heiko Tietze 2019-07-11 13:12:56 UTC
We discussed the topic in the design meeting and agreed on the proposal, considering a 16:9 ration, which is better suited for movies, and less space such as 50%, which would be too small. Any minimum value is an advantage over the zero size that might appear to users as broken (therefore I raise the importance).
Comment 4 Heiko Tietze 2019-07-15 11:22:32 UTC
SetMinOutputSizePixel() is implemented for include/vcl/syswindow and include/sfx2/dockwin but not include/vcl/window.hxx. And this function should receive the actual value from the OS/DE. Probably an easy hack for more experienced developers. Thanks jmux for the code pointers.
Comment 5 Xisco Faulí 2019-07-18 17:36:02 UTC
@Caolán, I thought you might be interested in this issue...
Comment 6 Caolán McNamara 2019-07-22 15:50:39 UTC
SetMinOutputSizePixel sets the minimum size below which a window cannot be shrunk, which is probably not whats wanted.
Comment 7 BogdanB 2020-08-31 09:24:09 UTC
In my case I had the window with 2 mm wight and 1 cm height. It is very hard to notice that this is a window. You can not edit in Calc in 0,02*1 cm... So, a default minim of 4 cm * 4 cm, or maybe 3*3 cm could be done. From my POV a 3*3 cm would be a minimum, else you can not see any cell in any file.
Comment 8 BogdanB 2020-09-11 04:08:56 UTC
*** Bug 136655 has been marked as a duplicate of this bug. ***
Comment 9 BogdanB 2020-09-11 19:42:17 UTC
*** Bug 136662 has been marked as a duplicate of this bug. ***
Comment 10 Jarosław Rafa 2021-02-08 16:28:16 UTC
I had this bug in a bit different scenario. I was running Calc maximized, and when I tried to import a CSV file by double-clicking on it, after going through the import dialog, my window minimized to a very small square.
This is reproduced everytime I run Calc maximized and import a CSV file via double-click.
If Calc was not maximized before import, there was no issue.
Comment 11 Jeff Fortin Tam 2021-04-30 15:55:07 UTC
This bites me almost daily because whenever I open Calc by opening a document, and it opens maximized, and I un-maximize the window (Super+downarrow key in GNOME), it ends up becoming a 1x1 pixels (or something like that) micro window that is barely noticeable.

Non-technical users (like many people in my extended family, who don't know the keyboard shortcuts to un/maximimize) would be pretty flustered by that and will end up with a "broken" app practically speaking.

> SetMinOutputSizePixel sets the minimum size below which a window cannot be shrunk, which is probably not whats wanted.

Actually that's exactly what I would want, at least as the fallback for undefined states where the app can't figure out what the appropriate default size would be. Make it enforce a hard minimum of 600x400 at the very least.

Why would anyone ever want to have a LibreOffice Calc/Writer/etc. main window sized anywhere smaller than 640x480 pixels? It seems to me that it could safely be assumed to be the absolute minimum to which a main app window can no longer be shrunk, because it's no longer usable below that size (even the toolbars would eat half of the height). Even phones these days have at least 720px in one dimension or the other, and no VGA output that I know shrinks below 640x480 even in disaster scenarios.
Comment 12 Dan 2021-05-23 12:58:29 UTC
(In reply to Jean-François Fortin Tam from comment #11)
> This bites me almost daily because whenever I open Calc by opening a
> document, and it opens maximized, and I un-maximize the window
> (Super+downarrow key in GNOME), it ends up becoming a 1x1 pixels (or
> something like that) micro window that is barely noticeable.
> 
> Non-technical users (like many people in my extended family, who don't know
> the keyboard shortcuts to un/maximimize) would be pretty flustered by that
> and will end up with a "broken" app practically speaking.
> 
> > SetMinOutputSizePixel sets the minimum size below which a window cannot be shrunk, which is probably not whats wanted.
> 
> Actually that's exactly what I would want, at least as the fallback for
> undefined states where the app can't figure out what the appropriate default
> size would be. Make it enforce a hard minimum of 600x400 at the very least.
> 
> Why would anyone ever want to have a LibreOffice Calc/Writer/etc. main
> window sized anywhere smaller than 640x480 pixels? It seems to me that it
> could safely be assumed to be the absolute minimum to which a main app
> window can no longer be shrunk, because it's no longer usable below that
> size (even the toolbars would eat half of the height). Even phones these
> days have at least 720px in one dimension or the other, and no VGA output
> that I know shrinks below 640x480 even in disaster scenarios.

I'm also experiencing exactly the same issue, running KDE Neon. In fact, I cannot even find the 'pixel' on my display and need to force-close the app. It really is an absurd situation - clearly a bug and not a feature!
Comment 13 Michael Warner 2021-11-05 13:58:18 UTC
*** Bug 145545 has been marked as a duplicate of this bug. ***
Comment 14 Jon Chamberlain 2021-11-11 23:25:06 UTC
Hi there

As far as I can see, this issue is still live and in fact, I experience it on a regular basis. I also have a group of users at my company that complain about it.

That being the case, I'm interested in hearing from someone on the project team to understand how I can assist with getting it resolved.

Many thanks,
Jon
Comment 15 Stéphane Guillou (stragu) 2021-11-23 06:28:05 UTC
Created attachment 176440 [details]
screenshot of minimised Calc window on Ubuntu 18.04

I can reproduce the issue by opening Calc (either opening the application or opening a document with Calc) with a recent master build:

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

Not only Calc is useless at this size (I am only able to click the "close document" button), but it might look to others like it has crashed if they don't directly spot where the tiny window is.

Attached screenshot shows panel indicators for size reference.
Comment 16 yan102 2021-11-23 12:21:23 UTC
Same problem using Ubuntu 20.04 and libreoffice 7.2.2.2.
Comment 17 Michael Turner 2022-01-17 23:56:35 UTC
Same issue for quite some time now. Not only with Calc, but with Writer.

Ubuntu 21.04
LibreOffice Version 7.1.7.2

The window ends up being about 1 pixel wide. I can drag it larger, but very disruptive and happens frequently.

I'll (try to) post an image.
Comment 18 Michael Turner 2022-01-17 23:57:39 UTC
Created attachment 177624 [details]
Pix of the intensely small LibreOffice window
Comment 19 BogdanB 2022-01-26 15:38:28 UTC
I am coming back with the idea to calculate a minimum width/height when LibreOffice is usable, and if the windows is going back to 1 mm, that limit will force to be bigger.  

Maybe a minimum of 5 cm width and 4 cm heigh (it's the title and 2 rows of icons) nothing usable still, but enough that we can see LibreOffice window IS on the screen).
Comment 20 draco31.fr 2022-04-26 06:49:06 UTC
*** Bug 134315 has been marked as a duplicate of this bug. ***
Comment 21 draco31.fr 2022-04-26 06:50:30 UTC
*** Bug 148637 has been marked as a duplicate of this bug. ***
Comment 22 draco31.fr 2022-04-26 07:12:58 UTC
Hello,

This bug is very anoying and still present in latest version as shown by latest duplicates reports.

Unfortunately, as screens becomes wider and uses higher dpi resolution, it is more and more difficult to find the restored window. 

This leads users to think it is freezed or anything unrecoverable and kill process, loosing their work.

IMHO, I would expect to view at least the 'File' menu in order to save my work or quit properly, and the title bar button to maximize/close the window.

I agree with the minimum size of 640x480 in last resort.
I didn't see any screen smaller even considering oldest hardware capable of running current version of LO.

May I ask what is expected by the UI team to take a decision ?

Best regards
Comment 23 Heiko Tietze 2022-04-26 07:26:20 UTC
(In reply to draco31.fr from comment #22)
> May I ask what is expected by the UI team to take a decision ?
No need for further input from the design team. Seeking for volunteers to implement it.
Comment 24 Matt K 2022-08-06 00:00:55 UTC
No repro on Windows 11.  Is this a Linux-only bug?
Comment 25 Buovjaga 2022-08-06 07:18:26 UTC
(In reply to Matt K from comment #24)
> No repro on Windows 11.  Is this a Linux-only bug?

Yes indeed, the OS field was incorrect.
Comment 26 BogdanB 2022-08-06 14:13:52 UTC
Repro today on a new Ubuntu 22.04 install with 
Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 5c68399e6bea3aa18477487400f8bb143d6ed84e
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 27 Oliver Grimm 2022-09-06 19:48:52 UTC
confirmed for Impress, too.

Version: 7.4.1.1 / LibreOffice Community
Build ID: 40(Build:1)
CPU threads: 16; OS: Linux 5.18; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Debian package version: 1:7.4.1~rc1-3
Calc: threaded
Comment 28 Stéphane Guillou (stragu) 2022-09-19 19:58:44 UTC
Removing "Calc" from summary and component as issue has been reported for Writer and Impress as well (as well as Dray in another report that I will probably mark as duplicate).

Earliest known version from Description is 6.3 alpha1+, using "6.3 all versions" as it is not available.
Comment 29 Stéphane Guillou (stragu) 2022-09-19 20:08:13 UTC
*** Bug 150079 has been marked as a duplicate of this bug. ***
Comment 30 Adam Piggott 2022-09-24 12:24:08 UTC
This may affect Windows. Bug 99112 describes related behaviour; this may be a duplicate.
Comment 31 Jonny Grant 2022-09-24 12:36:25 UTC
There's a lot of messages, but no fix. Is there anyone to work on this? It's easy enough to even check for (0,0) and change that to 600x600 so at least it will be visible if the real issue can't be solved today. I'll pay a $50 bug bounty for this fix to be committed and integrated.
Comment 32 Buovjaga 2022-09-24 14:28:48 UTC
The comments from this month might be about bug 150856, which was a recent regression and is fixed for 7.4.2.

Heiko: how is the behaviour for you now? In Safe mode on Linux with any of the UIs, they do *not* start maximised. Same for Windows.

Bug 99112 is about remembering the size across sessions, while this report is about what happens with a fresh profile in a single session.

Arch Linux 64-bit
Version: 7.4.1.2 / LibreOffice Community
Build ID: 40(Build:2)
CPU threads: 8; OS: Linux 5.19; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
7.4.1-2
Calc: threaded

Arch Linux 64-bit
Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: f5c6ef40dd494f6984c6ed784fccc02806999836
CPU threads: 8; OS: Linux 5.19; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 7 September 2022

Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 00c5b0ca9264c5440bc70a68c425127ba5a47003
CPU threads: 2; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: fi-FI (fi_FI); UI: en-US
Calc: threaded Jumbo
Comment 33 Oliver Grimm 2022-09-24 21:59:00 UTC
On Debian, I confirm that upgrading to LO 7.4.2.1 from experimental branch today fixes this issue. Thank you. LO windows will open one last time with minimal size, though. After manually resizing them one last time they will reopen maximized upon restart, as expected.

At least on Debian I never experienced this bug with GNOME or Cinnamon Desktop; only with KDE Plasma. 

fixed in:
Version: 7.4.2.1 / LibreOffice Community
Build ID: 40(Build:1)
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Debian package version: 1:7.4.2~rc1-2
Comment 34 Heiko Tietze 2022-09-26 09:23:23 UTC
(In reply to Buovjaga from comment #32)
> Heiko: how is the behaviour for you now? In Safe mode on Linux with any of
> the UIs, they do *not* start maximised. Same for Windows.

Cannot test on Linux this week. All good on macOS, but prolly never was an issue.
Comment 35 Stéphane Guillou (stragu) 2022-10-08 21:45:48 UTC
The only way I consistently reproduce this bug is by following steps similar to comment 10, when opening a LibreOffice component involves getting through a dialog first. For example:

1. open Calc
2. maximise the window
3. close Calc
4. Open a CSV file with Calc
5. Once passed the import dialog, unmaximise (aka "restore down") the Calc window

But also:

1. open Base
2. maximise the window
3. close Base
4. Open Base again
5. Once passed the database creation dialog, unmaximise (aka "restore down") the Base window

Result: the windows is tiny.

However, it is possible to resize the window to an extremely small size in any LO component.
Comment 36 Heiko Tietze 2022-11-22 12:30:05 UTC
*** Bug 151313 has been marked as a duplicate of this bug. ***
Comment 37 Heiko Tietze 2022-11-22 12:30:41 UTC
Seems to be solved with bug 150779.
Comment 38 Stéphane Guillou (stragu) 2022-11-22 13:42:28 UTC
(In reply to Heiko Tietze from comment #37)
> Seems to be solved with bug 150779.

Sorry Heiko, I can still reproduce with:

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

and:

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

following the steps in comment 35.
Comment 39 JL 2022-12-15 11:02:42 UTC
Reproduced on Libreoffice 7.4.2 on Linux Mint 21 Cinnamon 5.4.12

Following the steps of comment 35 as stated above

Please, prioritize this issue, it's been there for ages and it's 100% possible to reproduce
Comment 40 Simon Coleman 2023-01-14 17:27:43 UTC
Very reproducible for LibreOffice 7.4.3 on Ubuntu 20.04 LTS (patched to date)
Is very annoying, very noticeable when using CSV.
Gnome shortcuts to resize the window in https://askubuntu.com/questions/1275213/libreofficecalc-window-is-shrunk-to-a-line-and-is-unclickable

I haven't investigated the output of SetMinOutputSizePixel but it looks like the end window it produces is the smallest possible desktop window, not the smallest window usable in Calc. Which even sounds like the wrong choice. 

It's pretty much impossible to use without keyboard shortcuts on "normal" 1920x1080 monitors. 

Surely after 3.5yrs the answer is not "best possible for all resolutions" but "anything that will work with many common resolutions" since I think the current approach is probably not workable for any resolution.
Comment 41 KaKi87 2023-04-02 17:40:48 UTC
Hello,

Reproduced on Ubuntu 22.04

Press Ctrl-Super-ArrowUp to put window back in maximized mode.

However, totally unable to resize the window in unmaximized mode, thus critical bug.

Thanks
Comment 42 KaKi87 2023-04-02 17:43:06 UTC
EDIT: Reproduced on Ubuntu **Unity** 22.04 (not GNOME or other).
Comment 43 Stéphane Guillou (stragu) 2023-04-18 07:45:14 UTC
Already reproduced following comment 35 steps in:

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

However, my steps don't give completely consistent results, so I'm not calling it a regression based on inability to reproduce in earlier versions. More consistent STR welcome.

Marking as depending on bug 97894 as a fix that covers all bases (startup, maximising/unmaximising, and manual resizing) should also fix this.
Comment 44 Jonny Grant 2023-04-18 10:43:42 UTC
Just an idea, can't it at least have a min 640x480 min size fallback? At least it's easier to spot it and resize by hand.
Comment 45 Stéphane Guillou (stragu) 2023-06-21 11:36:47 UTC
*** Bug 155955 has been marked as a duplicate of this bug. ***
Comment 46 Commit Notification 2023-06-30 08:41:27 UTC
Amin Irgaliev committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/431dc963a0d18341c9b4869a2a64009b7ff7f699

tdf#125543 Fix window size in GTK3 plugin

It will be available in 24.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 47 Eyal Rozenberg 2023-06-30 09:50:50 UTC
(In reply to Commit Notification from comment #46)
> Affected users are encouraged to test the fix and report feedback.

First, Amin, thanks for the patch. Unfortunately this is not something I experience frequently, so not so easy to reproduce the situation where I saw this. Encouraging other dupe authors to try though...
Comment 48 Russell Almond 2023-07-03 14:32:41 UTC
I am no longer seeing the problem.  When I open a new window, it is not maximized.  If I maximize the window and then un-maximize it by dragging the title bar, it changes to a sensible size.

Running Libre office under 7.3.7.2, 
Pop_OS 22.04
Gnome 42.5

Note, I'm currently running under Wayland, but was running under X windows when the problem occurred.

So, works-for-me.
Comment 49 Stéphane Guillou (stragu) 2023-07-05 15:28:39 UTC
Thank you for the patch, Amin.
If you don't have follow-up commits, please feel free to mark as "resolved".

Everyone affected, especially if you come from a duplicate report: please test a recent master build and see if you can still see the issue -> https://dev-builds.libreoffice.org/daily/master/current.html
Given the number of duplicates, it would be good to get lots of testers.

Noting that Heiko was talking about a fresh profile in Comment 0, which matches bug 155955 (recently fixed).

Using Comment 35 steps, I can't reproduce.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d74344f6cae0cf1c12f08249c8f49be1374fb98f
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 50 Amin Irgaliev 2023-07-06 06:56:42 UTC
These fixes affect only the GTK3 plugin. Please test bug reproduction on other plugins: kf5, x11, gen, etc.
Comment 51 Amin Irgaliev 2023-07-06 06:59:59 UTC
If the bug is still reproducible, please let us know the steps that made the bug for you.
Comment 52 Simon Dedman 2023-07-07 23:05:20 UTC
Worked for me, thanks all.

For anyone like me who was born with congenital dumbitis: you need to set the default program to LO dev otherwise it'll keep using default LO.
Comment 53 Commit Notification 2023-09-22 18:36:56 UTC
Amin Irgaliev committed a patch related to this issue.
It has been pushed to "libreoffice-7-6":

https://git.libreoffice.org/core/commit/ca93bbe8703bd6cf2aef8a649b0db2524a61afe9

tdf#125543 Fix window size in GTK3 plugin

It will be available in 7.6.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 54 Stéphane Guillou (stragu) 2023-11-17 12:20:16 UTC
*** Bug 104371 has been marked as a duplicate of this bug. ***
Comment 55 ben.grote 2023-12-30 23:16:19 UTC
 Reopening this bug.

An update to a newer version via the PPA. The Calc seems to be steady but I've appeared to still be having the issue on LibreOffice Draw even after an update
Comment 56 Buovjaga 2023-12-31 08:10:59 UTC
(In reply to ben.grote from comment #55)
>  Reopening this bug.
> 
> An update to a newer version via the PPA. The Calc seems to be steady but
> I've appeared to still be having the issue on LibreOffice Draw even after an
> update

Please copy and paste here the contents of your Help - About by clicking the copy button. This allows us to know more about your system.

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the information.
Comment 57 Buovjaga 2024-01-18 18:34:24 UTC
*** Bug 158964 has been marked as a duplicate of this bug. ***
Comment 58 Jeff Fortin Tam 2024-02-02 17:23:04 UTC
It partially works for me in version 24.2 from Flathub, on Wayland GNOME 45 / Fedora 39.

What works: it doesn't become minuscule.

What doesn't work optimally: it seems the maximization state is maybe not saved independently from width/height, because sometimes when you unmaximize it, either...

* It unmaximizes to the previous window width/height (correct behavior), or;
* It unmaximizes to the "maximized window's width/height" (incorrect behavior)

See this demonstration video showing both situations with LibreOffice Calc 24.2:
https://youtu.be/dv8gb1GljzU

Further reference that might help as inspiration for implementation, i.e. how it works in GNOME apps at least: https://developer.gnome.org/documentation/tutorials/save-state.html (you can see there that the maximization state is saved independently from width/height, but also you need to infer that width/height shouldn't get saved while in maximized state, only in windowed state)

---

Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 8; OS: Linux 6.6; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded
Comment 59 Jeff Fortin Tam 2024-02-02 17:27:35 UTC
I forgot to mention: the behavior observed in my comment #58 above is consistent across the apps, i.e. on my end it behaves the same in Draw like it does in Calc or Writer; I don't get minuscule windows on demaximizing, but the window size restoration is still a coin toss between "what it was" and "what is the width and height of the maximized window".
Comment 60 Stéphane Guillou (stragu) 2024-03-21 12:55:52 UTC
Ben didn't provide version details in comment 55.

Jeff, thank you for the follow-up, but because this report is about the barely visible, minuscule window issue, and because there's 60+ comments, let's see if your issue is already better described elsewhere, or if it needs a fresh start in a new report, with clear steps.
Thank you!