Yet another XI2 question..

Peter Hutterer peter.hutterer at
Tue Sep 22 03:43:01 PDT 2009

On Tue, Sep 22, 2009 at 10:34:22AM +0200, Florian Echtler wrote:
> a quick question: can a window receive both "classic" events (e.g.,
> MotionNotify) and XI2 events (e.g., XI_Motion)? This seems to work for
> things like LeaveNotify and XI_Leave, but not for Motion..

no, an input event is sent as only one type of event, either core, XI or
XI2. the assumption is that an application that knows about XI2 shouldn't
register for core events.

Affected by this are button, key and motion events. enter/leave and focus
events are sent in both ways because it's a quite different codepath.
also, not sending enter/leave events is quite risky and may break the
protcol. not sending motion events is safe however.


More information about the xorg mailing list