Skip to content

monitor-manager-xrandr: Don't try to disable disabled CRTC

Jonas Ådahl requested to merge jadahl/mutter:wip/x11-hotplug-crash-fix into master

When applying a configuration to XRANDR, we first disable CRTCs that happen to extend outside of the to-be X11 screen size. While doing so, we fail to actually check whether the CRTC is active or not, meaning we'll try to query the content of the CRTC configuration even though it has none, leading to a NULL pointer dereference.

Fix this by simply ignoring non-configured CRTCs.

Merge request reports