Bug 472236 - Maximized window state/size not properly restored
Summary: Maximized window state/size not properly restored
Status: RESOLVED FIXED
Alias: None
Product: kdiff3
Classification: Applications
Component: application (other bugs)
Version First Reported In: 1.10.5
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: michael
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-14 02:25 UTC by Stanimir Stamenkov
Modified: 2024-10-23 05:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stanimir Stamenkov 2023-07-14 02:25:13 UTC
(Copied from https://invent.kde.org/sdk/kdiff3/-/issues/38)

STEPS TO REPRODUCE

1. Open the main Kdiff3 window;
2. Size it comfortably but smaller than the entire screen;
3. Maximize the Kdiff3 window, close it, and reopen Kdiff3.

The main window is initially correctly restored to a maximized state and size.  Press the "OK" button in the file selection dialog.

OBSERVED RESULT

The window size is reset to the last non-maximized state size, although the window maximized state appears to indicate the window is still maximized.

EXPECTED RESULT

The window size should stay at its maximized dimensions.

SOFTWARE/OS VERSIONS

Windows: 10.0.19045.320
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION

As a workaround, before triggering the maximized state of the Kdiff3 window, manually size it to the maximum possible dimensions on screen.
Comment 1 Stanimir Stamenkov 2023-07-14 02:55:16 UTC
Works as expected using Kdiff3 0.9.98 from kdiff3.sourceforge.net, for comparison.
Comment 2 michael 2023-07-30 13:25:11 UTC
I can fix this easily enough from kdiff3 side. I think ultimately its a bug in Qt's save/restore feature which is supposed preserve fullscreen/maximized state and does on my test machine.
Comment 3 michael 2023-08-06 23:18:02 UTC
Weirdly on my test machine this starts out restored correctly. However on clicking cancel at the the initial open dialog to maximized status is flipped. This seems to be windows specific and does not happen under linux.
Comment 4 Stanimir Stamenkov 2023-10-18 10:03:11 UTC
> Weirdly on my test machine this starts out restored correctly. However
> on clicking cancel at the the initial open dialog to maximized status
> is flipped.

Yep, this is what I'm experiencing as well – from the description:

> The main window is initially correctly restored to a maximized state and
> size.  Press the "OK" button in the file selection dialog.
> 
> OBSERVED RESULT
> 
> The window size is reset to the last non-maximized state size...
Comment 5 michael 2024-10-22 16:25:19 UTC
This no longer seems reproduces on  my test machine with kdiff3 1.11.4. However I don't know what fixed it.
Comment 6 Stanimir Stamenkov 2024-10-23 05:45:47 UTC
I can't reproduce it currently using KDiff3 1.11.2, either.  It is possible a recent Windows update has fixed it.  Also tried 1.11.4 – all good now.