-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Since upgrading to OpenSUSE 11, I got the following problem with inkscape, both 0.46 and SVN:
If I set the extended input preferences of the Stylus to 'Disabled', I can use the pen as a mouse, draw etc. and move things around, but I don't get any pressure sensibility.
It I set the extended input preferences to 'Screen' or 'Window' (preferrably to 'Screen'), I get pressure sensibility, but I cannot select any object by simply clicking on it. I have to tap multiple times on it in order for it to have the normal handles appear, and only then I can move the object around. If I tap too often, I get the node selection, which isn't what I want (at that moment).
Any Ideas on why? Is this something the X input does differently when XInput is set to screen so Inkscape does not register a press (or doesn't register it in the right way?) or is the code in inkscape for disabled and screen mode that much different so that selecting with screen mode won't work as expected?
- -- Cheers, Alex
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Alexander Roalter wrote: | Since upgrading to OpenSUSE 11, I got the following problem with | inkscape, both 0.46 and SVN: | | If I set the extended input preferences of the Stylus to 'Disabled', I | can use the pen as a mouse, draw etc. and move things around, but I | don't get any pressure sensibility. | | It I set the extended input preferences to 'Screen' or 'Window' | (preferrably to 'Screen'), I get pressure sensibility, but I cannot | select any object by simply clicking on it. I have to tap multiple times | on it in order for it to have the normal handles appear, and only then I | can move the object around. If I tap too often, I get the node | selection, which isn't what I want (at that moment). | | Any Ideas on why? Is this something the X input does differently when | XInput is set to screen so Inkscape does not register a press (or | doesn't register it in the right way?) or is the code in inkscape for | disabled and screen mode that much different so that selecting with | screen mode won't work as expected? | Since nobody seems to care, I took some investigation and found out the following:
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 issue looks like it would be better suited to the devel list and perhaps the bug tracker.
Aaron Spike
Alexander Roalter wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Alexander Roalter wrote: | Since upgrading to OpenSUSE 11, I got the following problem with | inkscape, both 0.46 and SVN: | | If I set the extended input preferences of the Stylus to 'Disabled', I | can use the pen as a mouse, draw etc. and move things around, but I | don't get any pressure sensibility. | | It I set the extended input preferences to 'Screen' or 'Window' | (preferrably to 'Screen'), I get pressure sensibility, but I cannot | select any object by simply clicking on it. I have to tap multiple times | on it in order for it to have the normal handles appear, and only then I | can move the object around. If I tap too often, I get the node | selection, which isn't what I want (at that moment). | | Any Ideas on why? Is this something the X input does differently when | XInput is set to screen so Inkscape does not register a press (or | doesn't register it in the right way?) or is the code in inkscape for | disabled and screen mode that much different so that selecting with | screen mode won't work as expected? | Since nobody seems to care, I took some investigation and found out the following:
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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iEYEARECAAYFAkiGaI0ACgkQ1J0MF2u394ympQCeMy1jitHlZQx3uu/IZQgHjoy6 qjEAoLsbeCMBCpWCEbtDFEWQUD4/9G9u =X0LM -----END PGP SIGNATURE-----
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-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
participants (2)
-
Aaron Spike
-
Alexander Roalter