Input Event Handling

Tiago Vignatti vignatti at c3sl.ufpr.br
Wed Apr 4 07:42:47 PDT 2007


Thorsten Wilms escreveu:
> Hi!
> 
> I'm working on a concept that deals with mapping user input device 
> events to actions. For this it would be better to know how input 
> events are handled currently. Searched for a while, even had a look 
> at the ICCCM but failed to get anything out of it.
> 
> I initialy though it would be roughly like this:
> device -> driver->kernel -> userspace
> If X is running:
> device -> driver->kernel -> x-server -> WM -> app that has focus
> Where events can be interpreted and not passed on on every level.
> 
> In a random IRC channel I have been told that events are not passed 
> through the WM. But how can the WM intercept shortcuts, then?
> 
> With further thinking, input focus might happen on 3 levels:
> widget, window, application. Right?
> 
> If I hit Alt-F1 to switch to the first console, is that shortcut 
> interpreted by the kernel or the x-server?
> 
> Does the x-server anything special to receive all input events?
> 
> Does the kernel have a concept like input focus?
> 
> So please enlighten me about what way input events take, where 
> they can be intercepted (shortcuts) and how input focus is 
> structured.
> 
> 

There is a great documentation in xorg wiki which could help you:

http://xorg.freedesktop.org/wiki/Development/Documentation/InputEventProcessing


> --
> Thorsten Wilms

vignatti

-- 
Tiago Vignatti
C3SL - Centro de Computação Científica e Software Livre
www.c3sl.ufpr.br



More information about the xorg mailing list