diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-11-16 21:43:27 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-11-18 18:01:39 +0000 |
| commit | 4928517e27bf261d667eaa4417cecef0a04b3609 (patch) | |
| tree | 3223de223e2dfbfc6013fae4062149ae8c5b3f50 /src/ui/tools/spray-tool.cpp | |
| parent | remove hex color defaults from pref skeleton (diff) | |
| download | inkscape-4928517e27bf261d667eaa4417cecef0a04b3609.tar.gz inkscape-4928517e27bf261d667eaa4417cecef0a04b3609.zip | |
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.
Diffstat (limited to 'src/ui/tools/spray-tool.cpp')
| -rw-r--r-- | src/ui/tools/spray-tool.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/tools/spray-tool.cpp b/src/ui/tools/spray-tool.cpp index 52a8d114d..bc5eac75f 100644 --- a/src/ui/tools/spray-tool.cpp +++ b/src/ui/tools/spray-tool.cpp @@ -1245,6 +1245,7 @@ bool SprayTool::root_handler(GdkEvent* event) { sp_spray_extinput(this, event); desktop->canvas->forceFullRedrawAfterInterruptions(3); + set_high_motion_precision(); this->is_drawing = true; this->is_dilating = true; this->has_dilated = false; @@ -1341,6 +1342,7 @@ bool SprayTool::root_handler(GdkEvent* event) { Geom::Point const motion_dt(desktop->w2d(motion_w)); desktop->canvas->endForcedFullRedraws(); + set_high_motion_precision(false); this->is_drawing = false; if (this->is_dilating && event->button.button == 1 && !this->space_panning) { |
