DescriptionFixing the issue of GDK discarding unsupported XInput events.
Current implementation of message_pump_glib_x uses both X event queue and GDK's g_main_context_iteration to read event messages.
If the first X event in the X event queue can be dispatched directly, it will be extracted and dispatched.
If the first X event in the X event queue can't be dispatched directly, g_main_context_iteration will be called to translate X events into GDK evnets.
If the first X event can't be dispatched directly and is followed by X events that can be dispatched directly in the event queue,
those events that can be dispatched directly will also go through GDK and may get lost if GDK does not recognize them (e.g. XInput2 events).
To fix this, a GDK event filter is setup to intercept all the X events before they are translated into GDK events.
In the filter if the X events are found to be wanted, they will get dispatched directly instead of translated into GDK events.
BUG=
TEST=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86610
Patch Set 1 #
Total comments: 10
Patch Set 2 : Addressing some comments #
Total comments: 8
Patch Set 3 : addressing some comments #Patch Set 4 : addressing some comments #Messages
Total messages: 12 (0 generated)
|