summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-rr-config.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-07 23:32:38 +0100
committerinfirit <[email protected]>2014-11-28 08:44:02 +0100
commit6d6ea55cd7f962fc7d1b7a773d716552c8d4e36b (patch)
tree4205ea17f213bb4452257ad0923580e37a7abc38 /libmate-desktop/mate-rr-config.c
parentb48e20dde74897461bd0914bfb8cef9a9eaa296e (diff)
downloadmate-desktop-6d6ea55cd7f962fc7d1b7a773d716552c8d4e36b.tar.bz2
mate-desktop-6d6ea55cd7f962fc7d1b7a773d716552c8d4e36b.tar.xz
rr: unset primary on displays that are off
Based on gnome-desktop commit: 4dd5a30269d71bbe1da884a849db2290df5544c9 From: William Jon McCann <[email protected]>
Diffstat (limited to 'libmate-desktop/mate-rr-config.c')
-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) {