Skip to content
  • Carlos Garnacho's avatar
    gdk/wayland: Use toplevel surface for activation · 14d99bac
    Carlos Garnacho authored
    At the moment of launching/activating an application, the
    keyboard focus may be on a transient surface that quickly
    disappears after activation. If this happens, and the
    compositor handles surface destruction before the activated
    application gets to reply, the activation request may be
    deemed outdated, and the "demands attention" paths be taken.
    
    Peek the toplevel from the focus surface, as that has larger
    guarantees to remain valid for the whole duration of the
    operation.
    
    Closes: GNOME/gtk#5820
    14d99bac