Mouse ignored if tablet pen is used during alt+tab (windows 11)

Description of the Problem, or Question?

Mouse ignored if tablet pen is used during alt+tab

Basic System Details

Windows 11 64 bit

MyPaint version:
W64
2.0.1+git.478280f2

(Python 3.8.3, GTK 3.24.20, GdkPixbuf 2.40.0, Cairo 1.16.0, GLib 2.64.1

Make and Model # of Graphic Tablet:
Wacom board driver 6.4.3-1

Please Tell Us How to Reproduce the Problem in Steps.

I’ve created a video:

Thank you

Oddly enough similar to Pen input crippled in maximised/fullscreen apps (#3616) · Issues · GNOME / mutter · GitLab, which is a Linux bug. This might be an upstream issue, but I’m not familiar with MyPaint’s HID I/O handling at this point

Do you think the issue is as simple as debugging the code that detect when pen is about to be used and store the object properties and then when pen stops being used making sure all object properties are restored back to the previous properties before pen was used?

Object… properties? It’s going to be some time until I focus my attention towards MyPaint’s HID code specifically, but it’s most likely a problem with GTK rather than with MyPaint.

Hello, first post here.

Not sure if this would be any use, but I am on the same platform with a different tablet, so I tried reproducing this problem with the same sequence of steps and I couldn’t reproduce it.

Windows 11 64 bit, with MyPaint 2.0.1+git.478280f2, Huion HS64 tablet.

I am using the standalone 7z archive version of the package from the official website instead of an installed version from the provided installer.

It’s quite unlikely that this is MyPaint code.

With Windows 11, GTK input handling + Wacom gets odd after alt+tab. GTK may become stuck using the pen as the primary pointer and fail to re-register mouse events if it is the final active device. MyPaint isn’t shifting device state itself, it’s just not accepting mouse input anymore.

the “restore object properties” approach doesn’t really apply here - this lives at the GTK / GdkSeat level. you’ll notice similar behavior in other GTK apps on Windows when blending pen + mouse + focus changes.

if the mouse dies in another GTK app with the same Wacom driver after alt+tab, that confirms it’s upstream, not MyPaint.