Skip to content
  • Marco Trevisan's avatar
    shell-global: Disconnect from stage events on X11 display close · 31d915a3
    Marco Trevisan authored
    As per GNOME/mutter!385 [1], the compositor is finalized an its pointer
    cleared on display close.
    
    However, since the shell reacts to such events instead of controlling them,
    when the shell is stopping or restarting and its display closing, the shell
    stage destroys its children after the display closing is finished and during
    this process the focus is unset, causing focus_actor_changed() to be called
    and thus calls to meta_stage_is_focused() which deferences the now NULL
    compositor, leading to a crash on shutdown.
    
    Since after this point we should just ignore any stage event, disconnect
    from them all.
    
    [1] GNOME/mutter!385
    
    GNOME/gnome-shell!746
    31d915a3