Bug 498386

Summary: Tablet stylus click doesn't work as expected
Product: [Plasma] kwin Reporter: fabrice salvaire <fabrice.salvaire>
Component: inputAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: dmatteo002, duha.bugs, josh, nate, nicolas.fella
Priority: NOR    
Version First Reported In: 6.2.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=499576
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description fabrice salvaire 2025-01-08 14:30:29 UTC
I encounter many issue with Gimp using a Wacom tablet.

Moreover, I noticed that depending on the widget in the UI, a stylus (left) click works as expected, and sometimes I have to perform a down action. It means move out the surface and go down to click.

When I click on a window icon on the task bar while on the surface, I got unexpected actions, sometimes it does a right click action.

I also have Gremlins in my mouse (left) click. And I don't know if it is a hardware issue (mouse contact) or a bug.  I also noticed a left mouse click reacting as a right click.
Comment 1 fabrice salvaire 2025-01-08 16:54:09 UTC
For Gimp V3 GTK3 issue, see https://gitlab.gnome.org/GNOME/gimp/-/issues/12678

OS is Fedora 41
Comment 2 Nicolas Fella 2025-02-06 14:32:32 UTC
This is most likely caused by https://bugs.kde.org/show_bug.cgi?id=499576
Comment 3 Bug Janitor Service 2025-04-26 15:05:19 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/7563
Comment 4 Zamundaaa 2025-05-05 16:34:11 UTC
Git commit e3e6af69c64fc15b3a7a2f3ffa493d2f7315d374 by Xaver Hugl.
Committed on 05/05/2025 at 16:23.
Pushed by zamundaaa into branch 'master'.

input: set the current surface correctly for tablet events

It ignored subsurfaces and always used the root surface of the window.
Related: bug 499576

M  +6    -6    src/input.cpp
M  +4    -21   src/wayland/seat.cpp
M  +11   -6    src/wayland/surface.cpp
M  +2    -0    src/wayland/surface.h

https://invent.kde.org/plasma/kwin/-/commit/e3e6af69c64fc15b3a7a2f3ffa493d2f7315d374
Comment 5 Bug Janitor Service 2025-05-05 17:09:38 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/7588
Comment 6 Zamundaaa 2025-05-05 17:27:23 UTC
Git commit cbea602145d18760e70be264d54126a6ef7ee6e1 by Xaver Hugl.
Committed on 05/05/2025 at 17:09.
Pushed by zamundaaa into branch 'Plasma/6.3'.

input: set the current surface correctly for tablet events

It ignored subsurfaces and always used the root surface of the window.
Related: bug 499576
(cherry picked from commit e3e6af69c64fc15b3a7a2f3ffa493d2f7315d374)

M  +6    -6    src/input.cpp
M  +4    -21   src/wayland/seat.cpp
M  +11   -6    src/wayland/surface.cpp
M  +2    -0    src/wayland/surface.h

https://invent.kde.org/plasma/kwin/-/commit/cbea602145d18760e70be264d54126a6ef7ee6e1