Moving object with Wacom pen jumps to previous object

Summary:

When selecting and moving different objects with a Wacom pen, the previously selected object is jumping into the new selection instead of the new selection.

Steps to reproduce:

  • open Inkscape
  • select one object with a pen and move the object around
  • select another object with the pen and move that object around
  • continue once or twice and then there is a jump on the previous object instead of the selected one

See attached video to reproduce.

What happened?

Instead of the newly selected object, there is a ghosted jump of the previous object, regardless of the selected object.

This only happens when doing this with a Pen, it is not reproducible with a Mouse.

What should have happened?

The newly selected object should move around.

Sample attachments:

Video showing the issue: Screencast_from_2023-12-26_19-24-01

Version info

Inkscape 1.4-dev (1:1.2.0-alpha1+devel+202312221609+09a30c2b39)

                  Compile  (Run)
GLib version:     2.78.3
GTK version:      3.24.38 (3.24.38)
glibmm version:   2.66.6
gtkmm version:    3.24.8
libxml2 version:  2.9.14
libxslt version:  1.1.35
Cairo version:    1.18.0 (1.18.0)
Pango version:    1.51.0 (1.51.0)
HarfBuzz version: 8.0.1 (8.0.1)

OS version:       Ubuntu Noble Numbat (development branch)
lsusb
Bus 001 Device 007: ID 056a:0376 Wacom Co., Ltd CTL-4100WL [Intuos BT (S)]