From 6d6ea55cd7f962fc7d1b7a773d716552c8d4e36b Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 7 Nov 2014 23:32:38 +0100 Subject: rr: unset primary on displays that are off Based on gnome-desktop commit: 4dd5a30269d71bbe1da884a849db2290df5544c9 From: William Jon McCann --- libmate-desktop/mate-rr-config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libmate-desktop') 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) { -- cgit v1.2.1