On Wed, Feb 03, 2010 at 09:49:31AM +0100, Rainer Klier wrote:
> Am Mittwoch, den 03.02.2010, 08:44 +1000 schrieb Peter Hutterer:
> > right. From an X point-of-view, you can use XI2 to wait for an event coming
> > from the tablet and then parsing the data into the signature. If you grab
> > the tablet device directly once it's pressed, you "detach" it temporarily
> > and thus make sure the data only goes to your app. Once you ungrab the
> > device, it continues to work normally.
> 
> but how can i grab the device?
> by pressing the pen down to the tablet-surface?

XIGrabDevice(3) is the call for grabbing a device. if the device specified is
a physical device ("slave device"), then this device will be detached from
the master pointer until you XIUngrabDevice(3).
think of master pointer == cursor, slave pointer == physical device, events
from the slave are routed through the master, so each time you move the
tablet the cursor moves too. detaching from the master means it's not
controlling the cursor anymore
This way, you're the only one to get events from the device too.

> i tried the tablet with gimp.
> it is not easy to work with.
> as long as i don't press the pen down, the tablet acts like a mouse, and
> therefor the area of the tablet is mapped to my x-screen.
> i have a dual-screen setup, so the mouse-pointer goes over both screens,
> when i move the pen over the tablet.
> it is very hard to get the pen into an open gimp-window to paint.
> and because the tablet is mapped to the whole screen, the area of the
> gimp-window where i want to paint, ist a very little area on the tablet.
> after pressing down the pen somewhere inside the gimp-window, i can
> paint on the whole gimp-window.
> the pen is then somehow "caught" inside the gimp-window.
> but i can not "air-move" the pen on some areas of the gimp-window,
> because the pen flies outside/over the gimp-window.
> it is hardly to describe.
> maybe/hopefully you know what i mean.
> 
> is this the way (like gimp does it) you mean with "detaching"?

gimp uses XI1, not XI2 yet. devices don't get detached with XI1. Try
switching the device to window mode in the gimp preferences, that should in
theory work around the mapping issue. it should then map the device into the
canvas area instead of to the whole screen.

> > if you make sure the X driver isn't loaded, you'll be fine.
> 
> absolutely correct.
> currently i renamed the wacom_drv.so, so that it can't be loaded.
> this is enough for me right now.
> but i have to find a more elegant solution to disable the x-driver for
> the future and for production releases....

yum remove xorg-x11-drv-wacom :)
(or whatever your distro's equivalent is)

Cheers,
  Peter

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to