Bug 214325 - windows don't remember their size after closing window maximized
Summary: windows don't remember their size after closing window maximized
Status: REPORTED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdeui (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 165043 303255 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-13 00:27 UTC by Janet
Modified: 2021-07-31 18:48 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janet 2009-11-13 00:27:09 UTC
Version:            (using KDE 4.3.2)
OS:                Linux
Installed from:    Debian testing/unstable Packages

When I maximize a window, close the application while the window is maximized, restart the application (opens maximized like it should) and then demaximize the window I expect the application window to go back to the size it had before I maximized and closed it. Instead the window is demaximized to a fixed value with apparently the same aspect ratio as the maximized window. It did work in KDE3 and I am quite sure it did work some KDE4 versions before.

I have tested this with konqueror, kontact and kwrite with different starting sizes.

Konqueror: my size 1380x960
maximized: 1912x1075 (1920x1200 display with two panels, top and bottom, windows not allowed to cover the panels)
demaximized after maximized closing: 1272x707

Kontact: my size 1350x893, maximized 1912x1075, demaximized 1272x707
Kwrite: my size 897x591, maximized 1912x1075, demaximized 1272x707

The windows demaximize fine, back to original size, if I don't close the window maximized.

BTW: This demaximized size of 1272x707 looks exactely like the size of the ominous white square that appears after login for a short time (Bug 213739).
Comment 1 Janet 2010-01-27 12:22:43 UTC
Maybe Bug 189180 is related?
Comment 2 Christoph Feck 2010-02-24 03:27:12 UTC
When using hide() then show() Qt (or KWin) simply forgets the original non-maximized size (upstream bug?)

But for an application exiting, i.e. destroying the QWidget object, it is possible to use resize(oldSize) then setWindowState(Qt::WindowMaximized) to get a maximized window that restores to oldSize later.

The remaining problem is that Qt does not support the dedicated H/V maximization.
Comment 3 Johannes E. Krause 2011-05-30 16:44:50 UTC
I'm having this exact same problem

steps to reproduce:
1. Resize a window to an arbitrary size
2. Maximize the window
3. Close the window
4. Reopen the window
5. Un-maximize the window
=> Window gets some default size (scaled by desktop size)

leaving out either step 2 (and 5) or step 3 (and 4) works like expected, the window regains the size that you chose in step 1.

this is a big usability issue for me, as i trigger this problem very often.
Comment 4 Johannes E. Krause 2011-05-30 16:47:51 UTC
Forgot to mention: i'm using KDE 4.6.3
Comment 5 Christoph Feck 2011-12-20 01:53:07 UTC
*** Bug 165043 has been marked as a duplicate of this bug. ***
Comment 6 Johannes E. Krause 2012-06-19 22:49:40 UTC
why the hell is this still not fixed after all these years?
Comment 7 Christoph Feck 2012-06-19 23:01:07 UTC
Read comment #2 and provide a patch for Qt, KWin, and/or kdelibs.
Comment 8 Janet 2012-06-20 17:37:43 UTC
@Johannes: My workaround for some applications is to set a fixed window size on initialization (window behaviour in systemsettings). Even when I close those windows maximized they open in those fixed size.
Comment 9 Christoph Feck 2012-07-10 01:00:39 UTC
*** Bug 303255 has been marked as a duplicate of this bug. ***
Comment 10 Andrew Crouthamel 2018-11-09 00:54:28 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Andrew Crouthamel 2018-11-18 03:31:51 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 12 vmelkon 2021-07-31 18:48:14 UTC
I don't consider this a bug with KDE.
It is the responsibility of the application to remember its position and size.
That's how I write my own applications whether they are for Windows or Linux.

That's my 2 cents.