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
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).
(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
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.
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.
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
Looks like there no such issues in Kubuntu 21.04. At least I can't confirm anything. I suppose it is solved.