Bug 505663

Summary: Tablet pen and mouse do not sync cursor positions when using Wayland
Product: [Plasma] kwin Reporter: cromachina
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: ajcartmell, findanotherplace, josh, julien, kdedev, madness742, mainquea, nate, regionstellarship_fouroner, wolflordtk
Priority: NOR    
Version First Reported In: 6.3.5   
Target Milestone: ---   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description cromachina 2025-06-16 15:10:12 UTC
SUMMARY
When using the tablet pen, it takes over the cursor position, but when using the mouse again, the cursor position teleports back to where the mouse cursor was last at. It does not do this with X11. This is kind of annoying and it would be nice to have an option to have cursor positions be synced like in X11.

STEPS TO REPRODUCE
1. Move your mouse around, like on a different monitor.
2. Use your tablet pen to move the cursor (in absolute position mode, or "artist mode").
3. Move the mouse around again.

OBSERVED RESULT
The cursor teleports to the last mouse position.

EXPECTED RESULT
The cursor continues moving from where the tablet left the cursor last.

SOFTWARE/OS VERSIONS
Operating System: NixOS 25.11
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.7-zen1 (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XTX

ADDITIONAL INFORMATION
I'm using OpenTabletDriver v0.6.4.0 with a Wacom Cintiq 22HD.

Related issue in OpenTabletDriver https://github.com/OpenTabletDriver/OpenTabletDriver/issues/2934
Quote from gonX:
> FWIW, Sway does not seem to exhibit any of these issues in Artist Mode, but I do also understand that Sway isn't exactly a drop-in replacement for neither Gnome nor KDE.
Which possibly indicates the issue is with the input handling of kwayland.
Comment 1 Vlad Zahorodnii 2025-06-17 11:41:36 UTC
This is intentional. Pointer and tablet input are independent.
Comment 2 cromachina 2025-06-17 12:25:04 UTC
(In reply to Vlad Zahorodnii from comment #1)
> This is intentional. Pointer and tablet input are independent.

Okay, then this is a feature request :)

> This is kind of annoying and it would be nice to have an option to have cursor positions be synced like in X11.
Comment 3 TraceyC 2025-06-17 20:34:30 UTC
Changing to a feature request to sync pointer and touch input
Comment 4 SkyWalteron 2025-10-02 02:56:20 UTC
(In reply to Vlad Zahorodnii from comment #1)
> This is intentional. Pointer and tablet input are independent.

That is terrible. Wayland not for artist with use graphic stylus pen user?
this intentional for really security and usability?
Krita or gimp or many create tool no usability with use graphic stylus and mouse in wayland.

If I krita drawing, if I little touch mouse, cursor position warp, So dive in panic.
I can't draw with this non usability wayland. Why I using X11 answer is this.
Comment 5 Bug Janitor Service 2025-10-02 21:14:57 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/8189
Comment 6 Bug Janitor Service 2025-10-02 21:15:54 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3233
Comment 7 David Redondo 2025-10-13 08:51:44 UTC
*** Bug 510509 has been marked as a duplicate of this bug. ***
Comment 8 wolflordtk 2026-01-14 22:51:49 UTC
Glad to see that some work is being done on this issue. I'll add an explanation of why I want/need this to be an option.

I have tendon problems in my hand which make it very uncomfortable to use normal mice and so use a tablet as my only input device for mouse usage. In order to get all of the possible click inputs (left click, middle click, right click, and pen input [not all apps treat pen input the same as a left click]), I use foot pedals to send left, middle, and right click inputs. Using the buttons on the side of the pen is a non-starter, as I find them uncomfortable to use and there isn't enough of them. There is also the issue that when clicking using the pen or the side buttons, it can be difficult to click fast enough to get applications not to treat it as a hold input. It's also nice to be able to freely float my hand above the tablet while holding middle click to pan in 3D software, for example. Making sure that the mouse clicks and holds map directly to the tablet's cursor input at all times is necessary for how I use a computer.

I find using this combination of foot pedal + drawing tablet the only way to do mouse input without discomfort and hand pain.
Comment 9 mainquea 2026-01-21 18:58:03 UTC Comment hidden (spam)
Comment 10 Nate Graham 2026-01-21 20:06:08 UTC Comment hidden (spam)
Comment 11 Anthony Cartmell 2026-01-30 15:16:09 UTC
This would be most welcome, I'm another person who uses a Wacom pen as my "mouse". Having the option for the tablet pen to control the "mouse" cursor instead of the second cursor would make things a LOT easier.
Comment 12 Joshua Goins 2026-02-14 03:14:13 UTC
Git commit 92b48ae5dfe4f8ded39290652e6077ac7b2afd6b by Joshua Goins.
Committed on 14/02/2026 at 02:48.
Pushed by redstrate into branch 'master'.

input: Add an option to sync tablet cursor position with the mouse

Currently, KWin tracks the stylus cursor and mouse cursor in two
separate positions. While this is preferred by some users, it's apparent
this is actually quite the opinionated option and is a blocker for some
tablet-users moving to Wayland.

M  +1    -1    autotests/integration/buttonrebind_test.cpp
M  +166  -1    autotests/integration/pointer_input.cpp
M  +10   -0    src/input.cpp
M  +3    -0    src/input.h
M  +5    -0    src/pointer_input.cpp
M  +5    -1    src/tablet_input.cpp

https://invent.kde.org/plasma/kwin/-/commit/92b48ae5dfe4f8ded39290652e6077ac7b2afd6b
Comment 13 Joshua Goins 2026-02-14 03:56:06 UTC
Git commit 24b464874279c509b6e713df2d9c1a5130e5e331 by Joshua Goins.
Committed on 14/02/2026 at 03:15.
Pushed by redstrate into branch 'master'.

kcms/tablet: Add an option to sync tablet cursor with the mouse

M  +31   -1    kcms/tablet/kcmtablet.cpp
M  +6    -0    kcms/tablet/kcmtablet.h
M  +6    -0    kcms/tablet/ui/StylusTab.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/24b464874279c509b6e713df2d9c1a5130e5e331