Skip to content
  • Aleksandr Mezin's avatar
    xwayland: Set xrandr primary output · 4f544b63
    Aleksandr Mezin authored and Marge Bot's avatar Marge Bot committed
    To find XWayland output that should be the primary one, iterate through all
    XWayland outputs, and compare their geometry to the geometry of the primary
    logical monitor.
    
    To avoid possible race conditions (Mutter's monitor configuration already
    updated, but Xrandr not yet), set the output both after Randr notifications and
    after 'monitors-changed' signal.
    
    #1407
    
    
    
    Signed-off-by: default avatarAleksandr Mezin <mezin.alexander@gmail.com>
    Part-of: <!1558>
    4f544b63