Created attachment 152661 [details] Resizing main view SUMMARY On first launch, Kate's main view can be resized by dragging the tab bar. See attached video for details. STEPS TO REPRODUCE 1. Delete ~/.local/share/kate folder 2. Launch Kate 3. Move cursor to area between toolbar and tab bar; the cursor will change from an arrow to a drag 4. Drag tabbar to resize main view SOFTWARE/OS VERSIONS Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.26.80 KDE Frameworks Version: 5.99.0 Qt Version: 5.15.6 Graphics Platform: X11
I can't reproduce that with 22.12 or master.
Created attachment 157498 [details] Still can be resized Still can be reproduced. SOFTWARE/OS VERSIONS Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.27.80 KDE Frameworks Version: 5.104.0 KDE Gear Version: 23.03.70 Qt Version: 5.15.8 Graphics Platform: X11
Reopen.
> KDE Gear Version: 23.03.70 Can't reproduce. Please try with master or 23.04.
Can reproduce on master. The problem is that the sidebar isn't collapsed (i.e. m_ownSplit is visible, which allows the sidebar to be resized even if it doesn't contain any tool) if the "Start new session" option is enabled and the ~/.local/share/kate/anonymous.katesession file is missing.
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/1200
Could you try my patch, should avoid the need for special casing for KWrite in the main window, too.
Your patch fixes this issue for me. But I fixed it much easier, see https://invent.kde.org/epopov/kate/-/commit/ca0e0872905b4481f908042de9216b7aa7fcf72d.
(In reply to popov895 from comment #8) > Your patch fixes this issue for me. But I fixed it much easier, see > https://invent.kde.org/epopov/kate/-/commit/ > ca0e0872905b4481f908042de9216b7aa7fcf72d. That is indeed a good fix for the initial state. I assume that allows to remove the // kwrite doesn't want sidebars, we have no plugins if (KateApp::isKWrite()) { setSidebarsVisibleInternal(false, true); } in the main window code, too?
Tried it, seems fine, updated the request
Git commit 14cf1a937d9300bbeabdbe00f9348ab0d4bc92b8 by Christoph Cullmann. Committed on 16/04/2023 at 09:07. Pushed by cullmann into branch 'master'. ensure sidebars are properly collapsed for no session data or KWrite mode we need to do some proper init allows to remove other hack for KWrite M +0 -5 apps/lib/katemainwindow.cpp M +5 -0 apps/lib/katemdi.cpp https://invent.kde.org/utilities/kate/commit/14cf1a937d9300bbeabdbe00f9348ab0d4bc92b8
Git commit 605583689ce1d3a21585960744ecd9643c97274f by Christoph Cullmann. Committed on 16/04/2023 at 09:08. Pushed by cullmann into branch 'release/23.04'. ensure sidebars are properly collapsed for no session data or KWrite mode we need to do some proper init allows to remove other hack for KWrite (cherry picked from commit 14cf1a937d9300bbeabdbe00f9348ab0d4bc92b8) M +0 -5 apps/lib/katemainwindow.cpp M +5 -0 apps/lib/katemdi.cpp https://invent.kde.org/utilities/kate/commit/605583689ce1d3a21585960744ecd9643c97274f