Fixed masking auto-detection not working as intended.
Fixed a failing XRandr query from incorrectly causing a fatal error.