Bug 442799 - Cards are not clickable with a Wacom pen
Summary: Cards are not clickable with a Wacom pen
Status: CONFIRMED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.86.0
Platform: Kubuntu Linux
: NOR normal
Target Milestone: Not decided
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-22 11:37 UTC by empyreal
Modified: 2022-09-28 11:30 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Discover (193.07 KB, image/png)
2021-09-22 11:37 UTC, empyreal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description empyreal 2021-09-22 11:37:22 UTC
Created attachment 141790 [details]
Discover

With Wacom pen I can't click whole Installed, Settings, About, Update menu items. I can choose them only by clicking respective icons.

Mouse works properly. I can click anywhere on menu item to choose.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 21.04
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.11.0-34-generic (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Wacom Intuos 490 Tablet
Comment 1 Nate Graham 2021-09-22 18:20:02 UTC
This is true of the base Kirigami Card component too; and up there no part of the card is clickable with a Wacom pen except for any inline action buttons. It seems that the only reason why clicking on the icons works in Discover is because we have a custom layout and Kirigami.Icon handles Wacom pen clicks.
Comment 2 Aleix Pol 2021-09-26 18:13:34 UTC
Is this an X11-only issue? It works fine on my system. Sometimes it feels a bit wonky but it does click.
Comment 3 Nate Graham 2021-09-26 18:32:15 UTC
No, I can reproduce on Wayland too.
Comment 4 Matej Starc 2022-09-10 10:29:09 UTC
This might be taken as a rant, but ok. This is what I've found while testing with my Asus stylus.

1. When pressing on "right click button" on my stylus, the right click event is triggered where the actual cursor is and not where the stylus pen cursor is (video1: https://cloud.aljaxus.eu/index.php/s/FWe7dNb9QDHoqGN)

2. It seems that labels block the pressed/clicked signal. (video2: https://cloud.aljaxus.eu/index.php/s/HwwogK4bWZts6rE, video3: https://cloud.aljaxus.eu/index.php/s/t6ELQQqtnjAkagb)

3. Some action list items are only clickable in icon's area. I assume because the label blocks all the events (video: https://cloud.aljaxus.eu/index.php/s/amRmW2HywfqkGt7) 

IMHO Labels are the cause of most of these problems.
Comment 5 Matej Starc 2022-09-10 10:30:43 UTC
(In reply to Matej Starc from comment #4)
> This might be taken as a rant, but ok. This is what I've found while testing
> with my Asus stylus.
> 
> 1. When pressing on "right click button" on my stylus, the right click event
> is triggered where the actual cursor is and not where the stylus pen cursor
> is (video1: https://cloud.aljaxus.eu/index.php/s/FWe7dNb9QDHoqGN)
> 
> 2. It seems that labels block the pressed/clicked signal. (video2:
> https://cloud.aljaxus.eu/index.php/s/HwwogK4bWZts6rE, video3:
> https://cloud.aljaxus.eu/index.php/s/t6ELQQqtnjAkagb)
> 
> 3. Some action list items are only clickable in icon's area. I assume
> because the label blocks all the events (video:
> https://cloud.aljaxus.eu/index.php/s/amRmW2HywfqkGt7) 
> 
> IMHO Labels are the cause of most of these problems.

What I wanted to say is, that this is not the only issue and there is no problem with cards but with either Qt or kwin.
Comment 6 Matej Starc 2022-09-24 16:28:37 UTC
Since KWin just redirects digital pen's events, it means the cause of this is Qt and how the label receives these events. I believe label does not propagate (redirect these events to the item below it) digital pen's events properly.
Comment 7 Aleix Pol 2022-09-28 11:22:15 UTC
I looked into it recently and it seems to me like Qt Declarative entirely ignores tablet events. Support for tablet events would be needed to start supporting it in a meaningful way. I'm afraid this would most likely make it a Qt 6 feature.
Comment 8 Matej Starc 2022-09-28 11:30:25 UTC
(In reply to Aleix Pol from comment #7)
> I looked into it recently and it seems to me like Qt Declarative entirely
> ignores tablet events. Support for tablet events would be needed to start
> supporting it in a meaningful way. I'm afraid this would most likely make it
> a Qt 6 feature.

I will try reporting it on the qt bugtracker so it is at least known.