Tabel/XInput

View: New views
1 Messages — Rating Filter:   Alert me  

Tabel/XInput

by Alexander Roalter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I was redirected to this list, my problem ist the following:

When using the Tablet (Wacom Graphire 4, USB) on my OpenSUSE 11,
with the selector tool (F1) pressing on some object, the object is not
selected. If I use the mouse for this, the object is selected.

If I switch the Tablet's mode from Screen to Disabled in the XInput
properties, I can select the object just as with the mouse, but I don't
get the pressure-sensitivity.


If I patch inkscape in order to produce output in
sp_select_context_root_handler and sp_select_context_item_handler and
put a printf at case GDK_BUTTON_PRESS, GDK_ENTER_NOTIFY,
GDK_LEAVE_NOTIFY on select_context_item_handler as well as
GDK_BUTTON_PRESS and GDK_BUTTON_RELEASE at select_context_root (the
latter two I'll be naming GDK_BUTTON_PRESS/RELEASE____root from now on,
I get the following behavior:


if I draw a square with the rectangle tool and switch to select (F1), I
can move the mouse over the rectangle and I get GDK_ENTER_NOTIFY
If I move the mouse out of the rectangle, I get GDK_LEAVE_NOTIFY

If I press somewhere (outside of the rectanlge), I get
GDK_BUTTON_PRESS____root, and when I release, I get
GDK_BUTTON_RELEASE____root. This is also valid for the tablet.

If I press somewhere *in* the rectangle, with the mouse I get
GDK_LEAVE_NOTIFY
GDK_ENTER_NOTIFY
GDK_BUTTON_PRESS

and if I release, I get
GDK_BUTTON_RELEASE___root
GDK_BUTTON_RELEASE___root (that's right, I get it twice),
and the rectangle is selected.


If I do the same with the tablet, I get
GDK_LEAVE_NOTIFY
GDK_BUTTON_PRESS____root

and upon release
GDK_BUTTON_RELEASE____root
GDK_ENTER_NOTIFY

and nothing is selected at all.

Maybe someone with a bit more insight could help me out here. It might
have to do something with GDK and/or its implementation of XInput, but
this would not explain the different behavior, I mean pressing outside
of the rectangle generates PRESS and RELEASE as expected, but if there's
an object under it, why is there a leave notify *not* followed by a
enter notify just as it is the case with the mouse?

--
cheers,
Alex

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel@...
https://lists.sourceforge.net/lists/listinfo/inkscape-devel
LightInTheBox - Buy quality products at wholesale price!