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/tool-base.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui/tools/tool-base.h') diff --git a/src/ui/tools/tool-base.h b/src/ui/tools/tool-base.h index dc68c4b7f..c9c223823 100644 --- a/src/ui/tools/tool-base.h +++ b/src/ui/tools/tool-base.h @@ -232,6 +232,8 @@ protected: gchar const *const *cursor_shape; bool sp_event_context_knot_mouseover() const; + void set_high_motion_precision(bool high_precision = true); + private: bool _keyboardMove(GdkEventKey const &event, Geom::Point const &dir); void sp_event_context_set_cursor(GdkCursorType cursor_type); -- cgit v1.2.3