summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmate-desktop/mate-rr-config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmate-desktop/mate-rr-config.c b/libmate-desktop/mate-rr-config.c
index c9cd85c..9f83c0c 100644
--- a/libmate-desktop/mate-rr-config.c
+++ b/libmate-desktop/mate-rr-config.c
@@ -1096,8 +1096,10 @@ mate_rr_config_ensure_primary (MateRRConfig *configuration)
for (i = 0; configuration->outputs[i] != NULL; ++i) {
MateOutputInfo *info = configuration->outputs[i];
- if (! info->on)
+ if (! info->on) {
+ info->primary = FALSE;
continue;
+ }
/* ensure only one */
if (info->primary) {