Bug 466782 - main window placed directly over old window when all toolbars and menubars are disabled
Summary: main window placed directly over old window when all toolbars and menubars ar...
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 22.12.3
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-03 17:27 UTC by Antonio Russo
Modified: 2023-03-04 04:22 UTC (History)
0 users

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 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