SUMMARY When creating a split view in Konsole, toolbar items (most often the hamburger menu or the session toolbar) sometimes move to places where they don't belong at all. STEPS TO REPRODUCE 1. Open Konsole, and ensure that session toolbar is enabled and menu bar disabled (the latter is not required, ignore steps talking about the hamburger button then) 2. Create a vertical split view 3. Right-click in the left part of the split, without left-clicking into it first OBSERVED RESULT The session toolbar now weirdly floats above the left part of the split. The hamburger menu is now moved to the right-click menu of the left part of the split. EXPECTED RESULT Both the session toolbar and the hamburger button remain where they belong. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: 6.5.4 (available in About System) KDE Plasma Version: 5.27.8 KDE Frameworks Version: 5.110.0 Qt Version: 5.15.10 ADDITIONAL INFORMATION When the bug happens, "Adding a KHamburgerMenu directly to a QMenu. This will look odd. Use addToMenu() instead." is logged four times. But I think that's a symptom rather than a cause of the bug.
Hi Alois, Yeah I can replicate it. The whole thing seems kinda weird to me in other cases too, such as when the hamburger icon sometimes seems to disappear: 1. Open Konsole, hamburger icon is visible top right 2. Split vertically. Split right is preselected, hamburger icon is gone. 3. Focus the split left (original). Hamburger icon is back. 4. Split vertically again. 5. Now new preselected tab is the first of three. Hamburger icon is gone. 6. Focus center split. 7. Hamburger icon is back. 8. Close center split. 9. No split offers a hamburger icon any longer. Does this behaviour seem erratic only to me? Or is there some kind of logic behind it? If it needs to be reworked/fixed, I'd be happy to look into it. Cheers Alfonso
The behavior seems very erratic to me as well, that's why I reported the bug to begin with. If this wasn't clear from my description ("the session toolbar and hamburger menu remain where they belong"), I meant that it should stay in the toolbar where it was before creating the splits.
A possibly relevant merge request was started @ https://invent.kde.org/utilities/konsole/-/merge_requests/981
Hi, I have started a merge request to solve the two aforementioned strange behaviours. https://invent.kde.org/utilities/konsole/-/merge_requests/981 Since one of my changes removes a detail of the signal that handles the change of the active view, I'd be happy to get some feedback if I need to study an alternative approach to this one. Cheers Alfonso
https://bugs.kde.org/show_bug.cgi?id=479316 might be related to this.
Git commit b93f44a90e1fafb1a32286c97509e7c145b018d4 by Kurt Hindenburg, on behalf of Alfonso Murolo. Committed on 05/04/2024 at 17:30. Pushed by hindenburg into branch 'master'. Fix hamburger menu/toolbar issues when splitting tabs Preventing hamburger menu from being lost when splitting tabs, and toolbar from being broken in split view in special case M +1 -2 src/MainWindow.cpp M +1 -0 src/ViewManager.cpp https://invent.kde.org/utilities/konsole/-/commit/b93f44a90e1fafb1a32286c97509e7c145b018d4