summaryrefslogtreecommitdiff
path: root/libmate-desktop
diff options
context:
space:
mode:
Diffstat (limited to 'libmate-desktop')
-rw-r--r--libmate-desktop/mate-rr-config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmate-desktop/mate-rr-config.c b/libmate-desktop/mate-rr-config.c
index bab0716..5702b11 100644
--- a/libmate-desktop/mate-rr-config.c
+++ b/libmate-desktop/mate-rr-config.c
@@ -1233,7 +1233,8 @@ mate_rr_config_ensure_primary (MateRRConfig *configuration)
if (!found) {
if (laptop != NULL) {
laptop->priv->primary = TRUE;
- } else {
+ } else if (top_left != NULL) {
+ /* Note: top_left can be NULL if all outputs are off */
top_left->priv->primary = TRUE;
}
}