https://bugs.kde.org/show_bug.cgi?id=518544

            Bug ID: 518544
           Summary: Middle click closes a document closes documents on
                    both press and release events on Wayland
    Classification: Applications
           Product: kate
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY
Middle clicking an open document closes the document intended to be closed on
<press> middle mouse event, and the next document on the <release> event.

STEPS TO REPRODUCE
1. Have two or more documents open in kate. Having three or more documents open
makes the issue easier to observe.
2. Hover over the left most document in the document tabs.
3. Middle button press to close the document, and let your cursor stay where it
is.
4. Release middle click (your cursor now being on the shifted from the right
document).

OBSERVED RESULT
The second document that was shifted will be closed on middle mouse release
event.

EXPECTED RESULT
The second document that was shifted shouldn't be closed on release event.

Additionally, in my opinion, the first document should only be closed on
<release> middle mouse button event. This is how Firefox behaves, for example,
when closing a tab. This allows a user to <press> to close a tab, and change
their mind by moving the cursor outside of the click box of the document when
releasing the click, thus not closing the document. But this could be treated
as a separate issue from this one, and is more a matter of design choice.
Closing on <press> event is not inherently bad. 

SOFTWARE/OS VERSIONS
Operating System: CachyOS Linux 
KDE Plasma Version: 6.6.3
KDE Frameworks Version: 6.24.0
Qt Version: 6.11.0
Kernel Version: 6.19.10-1-cachyos (64-bit)
Graphics Platform: Wayland

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to