Skip to content
  • Carlos Garnacho's avatar
    gdk: Always request "flush events" frame clock phase on events · 2b41e721
    Carlos Garnacho authored
    This change is done for 2 reasons:
    
    - The logic to request this phase when compressing scroll events is
      slightly broken. If there are multiple scroll events that are
      coalesced into one, the surface frame clock will not get this request.
      The worst case is having >= 2 scroll events on every frame, as the
      compressed event will be left in the queue, and be further compressed
      on future events.
    
    - Even scroll events aside, this phase is requested in oddly specific
      places that are not enough to cover all events, others do rely on
      unrelated GdkFrameClock activity that happens to flush the events
      as well.
    
    Unify this phase request so it explicitly happens on the arrival of any
    event. This ensures that events (compressed or not) will be handled
    promptly after arrival.
    2b41e721