Bug 162641 - Kate does not remember last window size when closed in maximized condition
Summary: Kate does not remember last window size when closed in maximized condition
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdeui (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-26 13:14 UTC by Syam
Modified: 2009-09-30 23:02 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Kate when opened after being closed in maximized condition (124.45 KB, image/png)
2008-05-26 13:15 UTC, Syam
Details
An example of a situation where Kate will REMEMBER the window size (309.15 KB, image/jpeg)
2009-02-06 00:50 UTC, Claus Appel
Details
An example of a situation where Kate will REMEMBER the window size (305.64 KB, image/jpeg)
2009-02-06 00:51 UTC, Claus Appel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Syam 2008-05-26 13:14:36 UTC
Version:           3.0.4 (using KDE 4.0.4)
Installed from:    Fedora RPMs
OS:                Linux

Kate usually remembers the last window size (but not the position, it seems).
But once I maximize Kate window, and then close it in that condition, next time I start kate, it shows up very small.
Comment 1 Syam 2008-05-26 13:15:29 UTC
Created attachment 24944 [details]
Kate when opened after being closed in maximized condition
Comment 2 Jakob Petsovits 2008-05-28 09:46:24 UTC
Confirmed, the same happens to me when restoring a desktop session where a maximized Kate window had been open before.
Comment 3 Stefano Crocco 2008-08-17 09:21:00 UTC
Also, if I resize kate to any other size than the minimum one then close it, the next time it opens, it is maximized.
Comment 4 Syam 2008-11-12 03:41:18 UTC
The problem persists with Kate v3.1.2 on KDE v4.1.2.
Comment 5 Syam 2008-11-30 04:12:47 UTC
Any plans to fix this for 4.2?
Comment 6 Claus Appel 2009-02-03 13:25:51 UTC
On my system, recent versions of Kate DO remember window size when maximized, but it forgets window size when NOT maximized. I am running Kate 3.1.4 in KDE 4.1.4. 
Comment 7 Syam 2009-02-05 03:13:15 UTC
I'm using the same versions as mentioned comment #6. For me, Kate remembers window size for all cases. (yes, I'm the reporter of the bug.. it seems to be fixed now, except for comment #6).
Kate Version 3.1.4
Using KDE 4.1.4 (KDE 4.1.4)
on Fedora 10 i686
Comment 8 Claus Appel 2009-02-06 00:50:21 UTC
Created attachment 31008 [details]
An example of a situation where Kate will REMEMBER the window size
Comment 9 Claus Appel 2009-02-06 00:51:23 UTC
Created attachment 31009 [details]
An example of a situation where Kate will REMEMBER the window size
Comment 10 Claus Appel 2009-02-06 00:53:09 UTC
I have done a bit more experimenting. It looks like the problem only shows up when the window is set to stretch as far as it can in either the vertical direction (from the upper edge of the screen and all the way down to the Task Manager bar) or the horizontal direction (left edge to right edge of screen). 

If I set the window like that and then close Kate, it will forget the setting and reshape the window next time I open it. But if I make the window so it does not fill out the entire horizontal NOR vertical length of the desktop, Kate will remember it. 

This problem is not Kate-specific. It happens in Kopete as well (with the chat windows, but not with the Kopete main window) on my machine. 

I have attached some example screenshots of situations where Kate will remember or forget the window size. (I made a mistake in the text above. Comment #9 should say "forget" instead of "remember". Sorry about that.)
Comment 11 Syam 2009-02-06 03:20:50 UTC
I can kind of confirm Claus's observations. There's an interesting twist.
1. Open Kate and change to a small window size - one that doesn't touch any of the extremes
2. Right click on the maximize button to maximize horizontally
3. Close Kate
4. Re-open Kate - the window will be maximized VERTICALLY!
5. Close Kate in this condition
6. Re-open Kate - the window will now be maximized HORIZONTALLY
7. Close and re-open, the state toggles

The same behaviour is observed with Konsole, but Dolphin works fine.
Comment 12 Andreas Pakulat 2009-02-06 09:53:09 UTC
can somebody please try with KDE 4.2, this should be fixed in kdelibs 4.2.0
Comment 13 Stefano Crocco 2009-02-06 10:02:08 UTC
For me it works, both with kde 4.2.0 and with the latest svn version.
Comment 14 Sean Harmer 2009-02-22 20:30:33 UTC
There is still a problem with kate not restoring the previous size correctly as of KDE 4.2.0. To reproduce:

* Open Kate and resize to a larger, non-maximised size.
* Close Kate and reopen it. It restores the previous size correctly.
* Without resizing kate again, close it.
* Open Kate again - it will restore at its original default small size.

I've been looking at something similar in kontact (now fixed). I'll see what I can do with this one too.
Comment 15 Dario Andres 2009-05-01 17:14:07 UTC
Related to bug 157293 ?
Comment 16 Syam 2009-06-13 14:25:24 UTC
Observation described in comment #14 *does not* happen with KDE 4.2.3 on Fedora 11.
Kate seems to remember window size in all conditions, but not the window position. It always aligns with the top and left edges of the screen.
Comment 17 Claus Appel 2009-06-13 18:41:28 UTC
I concur with Syam (comment #16). Problem seems gone in Kate 3.2.3 with KDE 4.2.3, Fedora 11.
Comment 18 Syam 2009-09-26 10:45:06 UTC
If there are no more people confirming the existence of this bug, we can perhaps close this. 
As for me, as described in comment #16, with KDE 4.3.1 on Fedora 11, Kate remembers window size (but not the position) without issues.
Comment 19 Dario Andres 2009-09-30 23:02:57 UTC
Closing as WORKSFORME. Reopen if the problem reappears. Thanks