From f29ec83c6c613f2fc999da97c697e8cdd2eb0c02 Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 18 Jun 2024 13:44:19 -0300 Subject: [PATCH] [win] Fix sync between mouse cursor <-> stylus cursor (fix #4539) Added a new option (enabled by default) to set the mouse cursor when a pen/pointer message is received. This fixes a couple of issues: 1) When we zoom in/out with keys or scrolling the trackpad, the last known position will be used (the pen position if we are using the pen). 2) If we are recording the stream/live streaming with a software like OBS Studio, the cursor position will correctly be in the pen position if we're painting with the pen. --- data/pref.xml | 1 + data/strings/en.ini | 7 ++-- data/widgets/options.xml | 32 ++++++++--------- laf | 2 +- src/app/app.cpp | 37 ++++++++++++-------- src/app/commands/cmd_options.cpp | 59 +++++++++----------------------- 6 files changed, 60 insertions(+), 78 deletions(-) diff --git a/data/pref.xml b/data/pref.xml index dbc557525..b4e7c81e1 100644 --- a/data/pref.xml +++ b/data/pref.xml @@ -230,6 +230,7 @@