Bug 480459 - Konsole doesn't remember its maximized state
Summary: Konsole doesn't remember its maximized state
Status: CONFIRMED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 24.01.90
Platform: Neon Linux
: NOR minor
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-01-28 21:09 UTC by John
Modified: 2024-06-20 11:33 UTC (History)
10 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 John 2024-01-28 21:09:19 UTC
SUMMARY
Konsole doesn't remember its maximized state


STEPS TO REPRODUCE
1. Open Konsole
2. Maximize it as you wish, from the button or dragging it to the top edge, etc.
3. Close it
4. Open it again

OBSERVED RESULT
It doesn't open as maximized, the last state it was before being closed.
It always opens in a centered windowed (non-maximized) state.

EXPECTED RESULT
It should open in the same state it was last time, before being closed.
In the case I tested, that being the maximized one.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
KDE Plasma Version: 5.92.90
KDE Frameworks Version: 5.249.0
Qt Version: 6.6.1
Konsole: 24.01.95 (Not possible to select it in the version selector above)

ADDITIONAL INFORMATION
KDE Neon fully updated, showing Plasma 6.0 RC1
Using the Wayland session
Kernel Version: 6.5.0-15-generic (64-bit)
CPU: Intel Core i5-8250U
GPU: Integrated UHD 620

Not sure if related in any way, but the system monitor notorious until now for not opening in a fully maximized state (always having a bit of space left around it) it now opens in the fully maximized state, but it doesn't remember the windowed state.

And not sure if this is related as it talks about a split view being used too and it's not clear to me if it's about just the views or the whole window being maximized, like in my case:
https://bugs.kde.org/show_bug.cgi?id=450574
And I see here that a very similar bug should be fixed, Nate saying he cannot see the problem anymore in Konsole 24.02
https://bugs.kde.org/show_bug.cgi?id=455473
Are there such  bug differences and bug fixes between 24.01.95 and 24.02?
While I prefer most of the windows that I use to open in maximized state, this is one of the most important ones to work well that way as i have to see output of commands as well as I can.
Comment 1 Doug 2024-01-29 04:44:51 UTC
Can confirm.  It doesn't seem to matter whether "Remember Window Size" is checked or not.
Comment 2 Nate Graham 2024-01-29 19:52:48 UTC
Huh, works for me with today's git master on Plasma 6 Wayland when "Remember window size" is enabled. And with it disabled, the window size resets to default every launch.
Comment 3 John 2024-02-27 18:48:17 UTC
That's strange!

In the meantime I reinstalled KDE Neon.
And I fully updated it to today.
It's still happening, Konsole always opens in windowed mode, centered.

But this time I noticed something, luckily because of the colors of the wallpaper...

After it opens in windowed mode, no matter that I maximize it with the maximize button or by dragging the window to the top, when  it's maximized, there's a vertical strip 1-3 pixels wide, on the right of the title bar.

With the title bar and the tool bar having the same color it's difficult to say exactly what it's its height, but it looks to me to have the same height as the title bar.

So I guess the title bar, on the right side has a few pixels that should not be there and it's probably what is making the maximized detection code to miss it. Maybe the title bar it's not fully expanding to the width of the monitor?

I tried to make a printscreen while zooming-in on that area, but that is buggy and I could barely get out of it.

Anyway, if you still cannot reproduce it, I will just make a non-zoomed-in picture, but I don't see how to upload new printscreens in comments, it's not possible?
Comment 4 Kayzzen 2024-03-27 18:42:23 UTC
On Arch Linux the same problem occurs, it also happens to remember the size of the window.. I noticed this problem on a clean install. After an update the problem does not occur.

 To contingency the problem, I added the following lines to ~/.config/konsolerc

[MainWindow]
2560x1440 screen: Height=
2560x1440 screen: Width=

@John, could you edit the problem issue and add "and the size of the window"? Just to make tracking easier ;-) Thanks in advance!