Bug 391975 - Konsole keeps sending mouse-drag reports in ESC[?1003h mode after releasing button outside window
Summary: Konsole keeps sending mouse-drag reports in ESC[?1003h mode after releasing b...
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: emulation (show other bugs)
Version: 17.12.2
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-17 20:34 UTC by gumix
Modified: 2021-06-07 18:41 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 21.08
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gumix 2018-03-17 20:34:27 UTC
The only way to stop it is to get mouse back over Konsole window.
Comment 1 Kurt Hindenburg 2018-03-17 22:20:50 UTC
something does appear to be wrong
Comment 2 tcanabrava 2021-06-07 18:05:14 UTC
Git commit 6aa40563040b0ec4d1fde8a701b5fa4e0951f16d by Tomaz  Canabrava, on behalf of Luis Javier Merino Morán.
Committed on 07/06/2021 at 18:03.
Pushed by tcanabrava into branch 'master'.

Only generate autoscroll events while selecting

As gumix explains in the bug below, "Konsole keeps sending mouse-drag
reports in ESC[?1003h mode after releasing button outside window [...]
The only way to stop it is to get mouse back over Konsole window."

These mouse-drag reports are actually generated by AutoScrollHandler, to
support the use case of extending the selection by dragging the mouse
outside the display area.

So, only generate those reports while selecting.

Can be tested by playing around in vttest:

 - 11. Test non-VT100 (e.g., VT220, XTERM) terminals
 - 8. Test XTERM special features
 - 5. Mouse features
 - 7. Mouse Button-Event Tracking (XFree86 xterm)

M  +5    -0    src/terminalDisplay/TerminalDisplay.cpp
M  +3    -0    src/terminalDisplay/TerminalDisplay.h
M  +3    -1    src/terminalDisplay/extras/AutoScrollHandler.cpp

https://invent.kde.org/utilities/konsole/commit/6aa40563040b0ec4d1fde8a701b5fa4e0951f16d