Bug 456634

Summary: Opening a module and then decreasing its width/height until it disappears will still show the module as being selected
Product: [Applications] kate Reporter: Jan Bidler <janbidler00>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: loh.tar, waqar.17a
Priority: NOR    
Version First Reported In: 22.04.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jan Bidler 2022-07-12 15:53:57 UTC
SUMMARY
Kate automatically dismisses a modules' window, if its width/height is too small. However, in that case, the is still visually shown as selected/expanded


STEPS TO REPRODUCE
1. Open Kate (am assuming a default configuration with the placement of modules)
2. Click on the Git module
3. Select the divider and move it completely to the left until the git module window disappears

OBSERVED RESULT
The git module on the left is still highlighted as if it were open

EXPECTED RESULT
The git module on the left should not be highlighted anymore as it was closed.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.3
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.18.9-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Something worth noting about this, is that in the "pseudo closed" state, it is actually possible to select the divider and move it back out again, something that's not visually indicated in any way. 
The state seems a bit buggy as well, as sometimes random black rectangles appear on/near the divider if I put my mouse on it.
Comment 1 Waqar Ahmed 2022-08-11 05:53:59 UTC
The only fix that I have in mind for this is completely removing this drag to close functionality. It offers little practical benefit.
Comment 2 Jan Bidler 2022-08-11 11:52:29 UTC
I'd be fine with that. Personally also don't see a reason to have both actions do the same thing here.
Comment 3 Lothar 2022-09-29 08:24:03 UTC
This should be closed. The behavior is intended. You can toggle show/hide the sidebar this way and the selected tabs/tools are then visible. The sidebar stuff was redone (may appear in some next release) but kept most of its behavior.