Passing X events into the X server

Erik de Castro Lopo mle+xorg at mega-nerd.com
Thu Aug 16 01:56:35 PDT 2007


Hi all,

I have written a driver for a USB touchscreen. The driver is all in
user space (thank you libusb) and during testing I sent X events to
the X server using the XTest interface.

This has all been working quite well, but I'd now like to take this
a step further. I prefer to keep the driver in user space, but have 
it run as  daemon.

The problem is that unless the daemon is started as the user that 
is currently logged in, the XOpenDisplay call fails.

Whats the best way for me get this daemong pumping events into the
X server? Do I really need write an X server plugin?

Any help appreciated.

Cheers,
Erik
-- 
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"Windows was created to keep stupid people away from UNIX."
  -- Tom Christiansen



More information about the xorg mailing list