Bug 466782

Summary: main window placed directly over old window when all toolbars and menubars are disabled
Product: [Applications] konsole Reporter: Antonio Russo <aerusso>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 22.12.3   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:

Description Antonio Russo 2023-03-03 17:27:03 UTC
SUMMARY

The main window of konsole is placed in an unfortunate way when called from, e.g., a global keyboard shortcut to open a terminal that calls the executable `/usr/bin/konsole`.  The window is often paced in the same spot on every command invocation.

STEPS TO REPRODUCE
1. Remove ~/.config/konsole*
2. Run /usr/bin/konsole
3. Disable both the main and session toolbar.
4. Disable the menu bar.
5. Close the konsole session.
6. Run /usr/bin/konsole
7. Run /usr/bin/konsole again

OBSERVED RESULT

The second new konsole window appears directly above the first.

EXPECTED RESULT

The second new konsole window should be placed per the kwin rules, either centered or "least overlap", etc.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Debian unstable
(available in About System)
KDE Plasma Version:  4:5.27.2-1 (plasma-workspace)
KDE Frameworks Version:  5.103.0-1
Qt Version: 5.15.8+dfsg-3

ADDITIONAL INFORMATION

I have not tried to dig into options or the code very much.  That said, having this work differently when the menu bar is enabled vs disabled seems like unwanted behavior.
Comment 1 Antonio Russo 2023-03-04 04:22:53 UTC
As a workaround, you can set, in the [General] section of ~/.config/konsolerc ,

AllowKDEAppsToRememberWindowPositions=false