Bug 440478 - Wacom CTL-490-DW-N does not open menu items File View Edit etc
Summary: Wacom CTL-490-DW-N does not open menu items File View Edit etc
Status: RESOLVED FIXED
Alias: None
Product: wacomtablet
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Valerii Malov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-01 07:23 UTC by empyreal
Modified: 2021-08-26 06:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description empyreal 2021-08-01 07:23:21 UTC
SUMMARY
Can't open menu items File View Edit etc with Wacom.

STEPS TO REPRODUCE
I used Wacom Intuos Draw CTL-490-DW-N in Okular Version 1.9.3.

OBSERVED RESULT
Solved this issue in Okular by adding QT_XCB_TABLET_LEGACY_COORDINATES=1 to line Exec=okular %U in file /usr/share/applications/org.kde.okular.desktop
Similar problem with OBS and Oracle VM VirtualBox. Solved this issue by adding QT_XCB_TABLET_LEGACY_COORDINATES=1 to *.desktop files.

EXPECTED RESULT
Expect Wacom to work properly with Okular menu.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.8.0-63-generic
OS Type: 64-bit
Processors: 12 × AMD Ryzen 5 1600 Six-Core Processor
Memory: 15,6 GiB of RAM

ADDITIONAL INFORMATION
Tablet: Wacom Intuos Draw Pen S (CTL-490-DW-N)
Motherboard: X370 GAMING PLUS (MS-7A33)
BIOS: American Megatrends Inc.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
Comment 1 Albert Astals Cid 2021-08-01 09:17:14 UTC
This is clearly not an okular bug.

If you expect your tablet to behave like a mouse, you need to configure it system wide, or fix it per app (which the QT_XCB_TABLET_LEGACY_COORDINATES seems to be doing for Qt based apps).
Comment 2 empyreal 2021-08-01 09:56:23 UTC
(In reply to Albert Astals Cid from comment #1)
> This is clearly not an okular bug.
> 
> If you expect your tablet to behave like a mouse, you need to configure it
> system wide, or fix it per app (which the QT_XCB_TABLET_LEGACY_COORDINATES
> seems to be doing for Qt based apps).

Thanks for reply.
From user perspective everything should just work.

I don't feel it is normal to fix it per app. I don't know how to fix this system wide. If this is system wide, why KDE developers do not take it into account?

I googled the issue and it's hard to tell what the origin of that bug. People say it was introduced in some version of Qt. Fortunately I have problem only in 4 applications so far. Most annoying situation with Gwenview. QT_XCB_TABLET_LEGACY_COORDINATES=1 does not help with Gwenview:
https://bugs.kde.org/show_bug.cgi?id=440213
Comment 3 empyreal 2021-08-02 08:11:09 UTC
Now Okular works perfectly without QT_XCB_TABLET_LEGACY_COORDINATES=1
Situation with Okular is as strange as with Krusader (could not click on menu and path line). Few times I had similar issue with Krusader, but after application restart all worked as it should. This bug occurs rarely.
Comment 4 empyreal 2021-08-03 15:04:52 UTC
KStars, Oracle VM VirtualBox, OBS Studio – menu not working. Problem can be solved with
QT_XCB_TABLET_LEGACY_COORDINATES=1
Okular, Krusader – menu works. But problem may appear without evident reason. Can be solved with application restart or adding QT_XCB_TABLET_LEGACY_COORDINATES=1
Gwenview – drag function do not work. No solution found.
Comment 5 empyreal 2021-08-04 19:24:11 UTC
Similar problem in VLC. And this problem is 10 years old O_O according to https://forum.videolan.org/viewtopic.php?t=93893 When VLC is opened without video, everything works fine. After playing starts VLC don't react to Wacom: controls and menu don't work.

// Started VLC Media Player in terminal
vlc
VLC media player 3.0.9.2 Vetinari (revision 3.0.9.2-0-gd4c1aefe4d)
[0000560a6f8b7670] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0000560a6f955e80] main playlist: playlist is empty
// Played the video
kf5.kio.core: Invalid URL: QUrl("/home/user")
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
[00007fb4de415970] avcodec decoder: Using NVIDIA VDPAU Driver Shared Library  460.91.03  Fri Jul  2 05:42:23 UTC 2021 for hardware decoding
^Cuint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
QObject::~QObject: Timers cannot be stopped from another thread
Comment 6 empyreal 2021-08-26 06:23:21 UTC
Looks like there no such issues in Kubuntu 21.04.
At least I can't confirm anything.
I suppose it is solved.