• Colomban Wendling's avatar
    adaptor: Fix missing events at startup · 8cdf4d30
    Colomban Wendling authored
    We need to register the application before anything else happens,
    otherwise we might miss some events sent before registration.
    As we want to register only from the main loop to avoid registering
    an application that won't respond to calls [1], we used an idle
    callback; but it doesn't run early enough in all cases, e.g. in
    Firefox.  So, switch to a high-priority 0-timeout so that it should be
    dispatched among the first ones in the next main loop iteration, then
    being run before other callbacks that might generate events.
    Fixes gtk#2186
    [1] at-spi2-core#16
event.c 43.6 KB