Bug 440213

Summary: gray square handles not work when crop with wacom intuos draw tablet
Product: [Applications] gwenview Reporter: empyreal <empyreal>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: gabriel
Priority: NOR    
Version: 21.08.2   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description empyreal 2021-07-23 22:22:17 UTC
SUMMARY
Tried two versions of gwenview: 19.12.3 and 21.04.0. Same problem. When I try dragging gray square handles, they do not change cropped area. Handles stay on image borders and do not move. I can crop images in Advanced Settings by changing numeric values only.

STEPS TO REPRODUCE
gwenview 19.12.3 and gwenview 21.04.0
I use Wacom Intuos Draw small and it won't do this crop function.

OBSERVED RESULT
gwenview 19.12.3 and gwenview 21.04.0
I connected simple optical mouse and this crop function works. With optical mouse I can crop both ways: by dragging handles and by changing numeric values. But with tablet — no way — can't crop by dragging handles.

EXPECTED RESULT
Expect Wacom Intuos Draw to work fully as optical mouse.

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
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 empyreal 2021-07-24 11:02:53 UTC
Similar problem with VirtualBox.
Solution: Exec=bash -c 'QT_XCB_TABLET_LEGACY_COORDINATES=1 VirtualBox %U'
Source: https://forums.virtualbox.org/viewtopic.php?f=7&t=97881
Comment 2 empyreal 2021-07-24 11:15:56 UTC
Only Exec= option was changed in virtualbox.desktop
Exec=QT_XCB_TABLET_LEGACY_COORDINATES=1 VirtualBox %U
in /usr/share/applications/virtualbox.desktop does the trick - I can use Wacom

Only Exec= option was changed in org.kde.gwenview.desktop
Exec=QT_XCB_TABLET_LEGACY_COORDINATES=1 gwenview %U
in /usr/share/applications/org.kde.gwenview.desktop has no effect - I can't change crop area with Wacom
Comment 3 empyreal 2021-07-25 14:24:28 UTC
Same problem with newer Gwenview in Mageia 8 and Manjaro 21.07 releases (contains QT 5.15.2). Can’t change crop area with Wacom Intuos Draw Pen S North White (CTL-490DW-N).
Comment 4 empyreal 2021-07-31 09:52:43 UTC
Also I can't drag picture with Wacom pen when it is scaled. I think the root of this issue is the same, so I add comment instead posting new bug report.
Comment 5 empyreal 2021-08-18 21:55:46 UTC
Same problem with Version 20.12.3 on Kubuntu 21.04.
Comment 6 empyreal 2021-08-26 07:07:14 UTC
Same problem in gwenview-release-21.04 Gwenview Version 21.04.3
Comment 7 empyreal 2021-09-13 16:16:22 UTC
Same on Gwenview Version 21.08.1

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