From 4928517e27bf261d667eaa4417cecef0a04b3609 Mon Sep 17 00:00:00 2001 From: Patrick Storz Date: Sat, 16 Nov 2019 22:43:27 +0100 Subject: Selectively disable motion event compression for specific tools It was globally disabled in ab71599ea1af1ea5042e35502e9aa722cc4ab51e However most of the time we do not care for intermediate motion events, and forcing to process them only causes unnecessary performance overhead. --- src/ui/tools/pencil-tool.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ui/tools/pencil-tool.cpp') diff --git a/src/ui/tools/pencil-tool.cpp b/src/ui/tools/pencil-tool.cpp index d3e226a84..fd876270d 100644 --- a/src/ui/tools/pencil-tool.cpp +++ b/src/ui/tools/pencil-tool.cpp @@ -257,6 +257,7 @@ bool PencilTool::_handleButtonPress(GdkEventButton const &bevent) { break; } + set_high_motion_precision(); this->_is_drawing = true; } return ret; @@ -399,6 +400,8 @@ bool PencilTool::_handleMotionNotify(GdkEventMotion const &mevent) { bool PencilTool::_handleButtonRelease(GdkEventButton const &revent) { bool ret = false; + set_high_motion_precision(false); + if ( revent.button == 1 && this->_is_drawing && !this->space_panning) { this->_is_drawing = false; -- cgit v1.2.3