After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 167298 - Handle Wintab context overlap (win32)
Handle Wintab context overlap (win32)
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Win32
2.6.x
Other Windows
: Normal normal
: Small fix
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-02-13 21:03 UTC by Robert Ögren
Modified: 2005-02-25 00:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Suggested patch (3.53 KB, patch)
2005-02-13 21:09 UTC, Robert Ögren
none Details | Review

Description Robert Ögren 2005-02-13 21:03:18 UTC
Distribution/Version: XP SP 2

Currently the Wintab code in the Win32 GDK backend doesn't manage context
overlap order other than doing a WTOverlap(context, TRUE) at initialization.
This doesn't follow the Wintab specifications, although at least the Wacom
drivers are supposed to manage the context overlap order themselves
(http://www.wacomeng.com/devsupport/ibmpc/wacomwindevfaq.html#FAQ1.7).

Sometimes when I start testinput the tablet is initialized correctly, but no or
only a few tablets events are received. If I add a button that calls WTOverlap
and click it, I start getting tablet events. Strangely enough the problem
doesn't seem to happen for me with GIMP anymore, it did a few times before.
There have also been a few reports on the gimpwin-users Yahoo group of similar
problems in GIMP.

The easiest way for me to reproduce the problem is to execute 

for f in `seq 1 100`; do ./testinput --gdk-debug=input; sleep 1; done

and scribble a little and close and restart testinput until the problem occurs.
I'll attach a (too?) simple patch that seems to fix the problem for me.

(Wacom Graphire 3 tablet, using the 4.84-6 drivers, and latest gtk-2-6 from
anoncvs on Windows XP SP2)
Comment 1 Robert Ögren 2005-02-13 21:09:00 UTC
Created attachment 37440 [details] [review]
Suggested patch

Here's the patch, against gtk-2-6 sources from anoncvs.
Comment 2 Tor Lillqvist 2005-02-25 00:12:54 UTC
Thanks, patch committed to HEAD and gtk-2-6.