Commit a66d2e23 authored by Luis Javier Merino's avatar Luis Javier Merino Committed by Tomaz Canabrava
Browse files

Support AutoScroll while mouse tracking is enabled

AutoScrollHandler generates synthetic mouse moves to allow extending the
selection by dragging the mouse ouside the display area.  The synthetic
events it generates didn't carry any modifiers, so they were not
properly working when an application had requested mouse tracking
reports.  In that case, generate the events with ShiftModifier, so they
work properly.
parent 6aa40563
......@@ -25,11 +25,12 @@ void AutoScrollHandler::timerEvent(QTimerEvent* event)
auto* terminalDisplay = static_cast<TerminalDisplay*>(parent());
QMouseEvent mouseEvent(QEvent::MouseMove,
terminalDisplay->usesMouseTracking() ? Qt::ShiftModifier : Qt::NoModifier);
QApplication::sendEvent(widget(), &mouseEvent);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment