Bug 427681 - Konsole behaves strangely when setting AllowKDEAppsToRememberWindowPositions=false
Summary: Konsole behaves strangely when setting AllowKDEAppsToRememberWindowPositions=...
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 20.08.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-14 08:37 UTC by Grzegorz Antoniak
Modified: 2020-11-20 04:33 UTC (History)
1 user (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 Grzegorz Antoniak 2020-10-14 08:37:19 UTC
SUMMARY

Sorry for such general title, but because of unfamiliarity with KDE codebase, I'm unable to pinpoint the bug to the specific component. I can see however that it's visible in Konsole app.

STEPS TO REPRODUCE

Not really sure what's the exact sequence; I can reproduce it on one KDE installation (on openSUSE) without problems by following the steps described below, but the bug never happens on another KDE installation (on ArchLinux) and I can't force it to happen on this another KDE installation.

1. Set `AllowKDEAppsToRememberWindowPositions=false` in ~/.config/kdeglobals
2. Run Konsole
3. Change its size to very small or very large
4. Open 1 additional tab
5. Bug: Konsole should change the window size to some other size.
6. Resize the Konsole window again
7. Switch to another tab
8. Bug: There's a chance that the window will resize itself once again, by itself.

Then, close the Konsole window. Update AllowKDEAppsToRememberWindowPositions to 'true' or remove this setting (it should be true by default).

If done so, the Konsole window will behave normally without problems.

OBSERVED RESULT

You can see the behavior here: https://www.youtube.com/watch?v=QcS3hDgphNc

On this video, the Konsole window resizes itself, it also confuses the "Show menu" option: when I turn menu on, switch tab, then menu can hide itself. But Konsole still will think the menu is shown, because it will hide 'show menu' option in the context menu! 

Also sometimes when switching tabs, the Konsole window is resized, and "Show menu" option is reverted to previous setting.

EXPECTED RESULT

Proper Konsole behavior!

SOFTWARE/OS VERSIONS

Operating System: openSUSE Tumbleweed 20201011
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1
Kernel Version: 5.8.14-1-default
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-4770K CPU @ 3.50GHz
Memory: 15.6 GiB of RAM
Graphics Processor: GeForce GTX 970/PCIe/SSE2
Comment 1 Grzegorz Antoniak 2020-10-14 10:32:31 UTC
A little errata for the original bug report, in case my original report isn't clear.

Step 5 in "STEPS TO REPRODUCE": 

5. Bug: Konsole changes the window size to some other size, and it shouldn't do it.

OBSERVED RESULT

Konsole sometimes changes the size of the window, and changes the state of "menu visible" option, just after switching from one tab to another.

EXPECTED RESULT

Konsole shouldn't change the size of the window when switching tabs.
Comment 2 Grzegorz Antoniak 2020-10-17 16:13:50 UTC
After updating to KDE Plasma 5.20, the resizing part of this problem is gone, but sometimes switching tabs reverts the last action of showing/hiding the menu. So it's not completely gone.
Comment 3 Nate Graham 2020-10-21 19:36:38 UTC
> sometimes switching tabs reverts the last action of showing/hiding the menu
That's odd.

Does this have any relationship to the value of AllowKDEAppsToRememberWindowPositions, or is it always happening?
Comment 4 Bug Janitor Service 2020-11-05 04:33:34 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2020-11-20 04:33:50 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!