Skip to content
  • Carlos Garnacho's avatar
    x11: Update focus on the X11 display before the MetaDisplay · 8fd55fef
    Carlos Garnacho authored and Jonas Ådahl's avatar Jonas Ådahl committed
    The meta_display_update_focus_window() call has indirect dependencies
    on the X11 focus window, in order to determine the correct focus window
    on the Wayland side (i.e. may turn out NULL with certain X windows).
    
    In order to have the right x11_display->focus_xwindow there, we should
    perform first the focus update on the X11 display.
    
    Fixes focusing of Java applications, as those don't seem to go through
    _NET_ACTIVE_WINDOW.
    
    Closes: #819
    8fd55fef