Bug 739067

Summary: wrong stylus (Serial Wacom Tablet stylus) coordinates for ButtonRelease event on x200 tablet
Product: [openSUSE] openSUSE 12.1 Reporter: Dan Kats <dannk>
Component: X.OrgAssignee: E-mail List <xorg-maintainer-bugs>
Status: RESOLVED WONTFIX QA Contact: E-mail List <xorg-maintainer-bugs>
Severity: Major    
Priority: P5 - None CC: jengelh
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: SUSE Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Dan Kats 2011-12-31 09:27:42 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.14 (KHTML, like Gecko) Chrome/18.0.972.0 Safari/535.14 SUSE/18.0.972.0

Click-action of a stylus (on X200 Tablet with touch screen) gives two different coordinates for ButtonPress and ButtonRelease. As a result, the pen doesn't work properly (clicked elements don't see the release action)

If I change Mode to RELATIVE (with 
xinput set-mode "Serial Wacom Tablet stylus" RELATIVE) - the coordinates become the same (but it's not a solution for a tablet pc...) 

Eraser and Touch work fine.

Here is an output from xev for different corners:

upper left
----------
Code:
ButtonPress event, serial 33, synthetic NO, window 0x7200001,
    root 0xaf, subw 0x7200002, time 24429441, (37,33), root:(25,56),
    state 0x0, button 1, same_screen YES

EnterNotify event, serial 33, synthetic NO, window 0x7200001,
    root 0xaf, subw 0x0, time 24429441, (37,33), root:(25,56),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 256

LeaveNotify event, serial 33, synthetic NO, window 0x7200001,
    root 0xaf, subw 0x7200002, time 24429589, (1291,-21), root:(1279,2),
    mode NotifyNormal, detail NotifyNonlinearVirtual, same_screen YES,
    focus YES, state 0

ButtonRelease event, serial 33, synthetic NO, window 0x7200001,
    root 0xaf, subw 0x0, time 24429589, (1291,-21), root:(1279,2),
    state 0x100, button 1, same_screen YES

LeaveNotify event, serial 33, synthetic NO, window 0x7200001,
    root 0xaf, subw 0x0, time 24429589, (1291,-21), root:(1279,2),
    mode NotifyUngrab, detail NotifyNonlinear, same_screen YES,
    focus YES, state 0

lower left
----------
Code:
ButtonPress event, serial 33, synthetic NO, window 0x7200001,
    root 0xaf, subw 0x7200002, time 24455645, (40,37), root:(17,737),
    state 0x0, button 1, same_screen YES

EnterNotify event, serial 33, synthetic NO, window 0x7200001,
    root 0xaf, subw 0x0, time 24455645, (40,37), root:(17,737),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 256

LeaveNotify event, serial 33, synthetic NO, window 0x7200001,
    root 0xaf, subw 0x7200002, time 24455820, (1302,-698), root:(1279,2),
    mode NotifyNormal, detail NotifyNonlinearVirtual, same_screen YES,
    focus YES, state 0

ButtonRelease event, serial 33, synthetic NO, window 0x7200001,
    root 0xaf, subw 0x0, time 24455820, (1302,-698), root:(1279,2),
    state 0x100, button 1, same_screen YES

LeaveNotify event, serial 33, synthetic NO, window 0x7200001,
    root 0xaf, subw 0x0, time 24455820, (1302,-698), root:(1279,2),
    mode NotifyUngrab, detail NotifyNonlinear, same_screen YES,
    focus YES, state 0

Reproducible: Always

Steps to Reproduce:
1.run xev | awk '/MotionNotify|KeymapNotify|FocusOut|ConfigureNotify|FocusIn/,/^$/ { next; } {print}' 
2.tap in the xev window with stylus
3.compare coordinates of ButtonPress and ButtonRelease
Actual Results:  
ButtonPress and ButtonRelease have different coordinates

Expected Results:  
Coordinates have to be the same, otherwise programs often don't see the release action at all.

my computer: X200 Tablet with multitouchscreen (i.e. digitizer pen + resistive touchscreen)
Comment 1 Kun Kun Zhang 2012-03-09 07:25:59 UTC
Long time no response.So closed.Feel free to reopen it.Thanks.
Comment 2 Jan Engelhardt 2012-03-10 09:05:56 UTC
(Revert bogus close.)
Comment 3 Stefan Dirsch 2014-05-22 12:30:00 UTC
openSUSE 12.1 is no longer supported. Hence the issue won't be fixed for this product. In case the issue still is reproducable with a supported product (openSUSE 12.3/13.1 at the moment) or with openSUSE:Factory, please feel free to reopen. Thanks.