Skip to content
Snippets Groups Projects

xrandr: Fix deleting inactive monitors

Closed Vladimir Panteleev requested to merge CyberShadow/xrandr:xrandr-del-empty-monitor into master
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.
Edited by Vladimir Panteleev

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading