Skip to content
  • Vladimir Panteleev's avatar
    xrandr: Fix deleting inactive monitors · 829ed54d
    Vladimir Panteleev authored and Matt Turner's avatar Matt Turner committed
    
    
    The following commands did not behave correctly:
    
    xrandr --setmonitor empty auto none
    xrandr --delmonitor empty
    
    The second command failed with "No monitor named 'empty'". This
    occurred because get_monitors was invoked with its get_active argument
    set to False, which caused it to not retrieve inactive monitors. Thus,
    inactive monitors could not be deleted.
    
    Fix this bug by invoking get_monitors (and, thus, XRRGetMonitors) with
    get_active = False, thus enabling deletion of disabled monitors.
    
    Signed-off-by: default avatarMatt Turner <mattst88@gmail.com>
    829ed54d