SUMMARY Kate does not seem to restore the window position from the previous session on Windows 11. It looks that the RestorePositionForNextInstance option in <HOME>\AppData\Roaming\kate\katestaterc is always set to false on Kate exit. STEPS TO REPRODUCE 1. Open Kate. Change main window size and position. 2. Close Kate. 3. Open again Kate. OBSERVED RESULT The windows size is restored but not the window position. The Kate window always opens in the middle of the screen. EXPECTED RESULT Kate window should open in the screen position of the last session. SOFTWARE/OS VERSIONS Windows: Windows 11 23H2 KDE Frameworks Version: 6.6.0 Qt Version: 6.7.2 ADDITIONAL INFORMATION The behavior is observed with nightly build of Kate 24.11.70 (kate-master-7941), but I'm observing this from a long time ago with the official releases.
Please ignore "The Kate window always opens in the middle of the screen.".
*** Bug 484998 has been marked as a duplicate of this bug. ***
This is not exclusive to Windows, I have it in openSUSE Tumbleweed: SOFTWARE/OS VERSIONS Operating System: openSUSE Tumbleweed 20241002 KDE Plasma Version: 6.1.5 KDE Frameworks Version: 6.6.0 Qt Version: 6.7.2 Kernel Version: 6.11.0-1-default (64-bit) Graphics Platform: X11
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kxmlgui/-/merge_requests/239
*** Bug 492082 has been marked as a duplicate of this bug. ***
Git commit 99cd03cec0bc2738bd176836cc0794f14a7d5a60 by Alexander Lohnau, on behalf of Waqar Ahmed. Committed on 19/10/2024 at 08:33. Pushed by alex into branch 'master'. Fix window position not being restored Seems like a regression from 4eb7098a7b7b878b328b76c58d37607e75073d60 M +1 -1 src/kmainwindow.cpp https://invent.kde.org/frameworks/kxmlgui/-/commit/99cd03cec0bc2738bd176836cc0794f14a7d5a60
*** Bug 495566 has been marked as a duplicate of this bug. ***
(In reply to Alexander Lohnau from comment #6) > Git commit 99cd03cec0bc2738bd176836cc0794f14a7d5a60 by Alexander Lohnau, on > behalf of Waqar Ahmed. > Committed on 19/10/2024 at 08:33. > Pushed by alex into branch 'master'. > > Fix window position not being restored > > Seems like a regression from 4eb7098a7b7b878b328b76c58d37607e75073d60 > > M +1 -1 src/kmainwindow.cpp > > https://invent.kde.org/frameworks/kxmlgui/-/commit/ > 99cd03cec0bc2738bd176836cc0794f14a7d5a60 The bug persists after this fix. If the window is closed with the window's close icon, the position is remembered. If the window is closed when the close icon on a tab is clicked, the window position is forgotten.
Removing CC per abuse report received.
On Windows, the window position is also incorrect after Kate is closed using the Quit command in the File menu.