From 0e2f15588a89230e60a7dfe9f4164a8c17baa733 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 22 Sep 2015 17:23:50 +1000 Subject: gnome-rr: Fix turning off tiled monitors If you switch a tiled monitors off via the control panel, we need to propogate the change to the other tiles, when we get a geometry change. This fixes a problem with a tiled monitor only switching half off and confusing the desktop. https://bugzilla.gnome.org/show_bug.cgi?id=755384 --- libgnome-desktop/gnome-rr-output-info.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libgnome-desktop/gnome-rr-output-info.c b/libgnome-desktop/gnome-rr-output-info.c index 692e7ef2..6d480015 100644 --- a/libgnome-desktop/gnome-rr-output-info.c +++ b/libgnome-desktop/gnome-rr-output-info.c @@ -244,7 +244,10 @@ static void gnome_rr_output_info_set_tiled_geometry (GnomeRROutputInfo *self, in /* for primary tile only configs turn off non-primary tiles - turn them on for tiled ones */ if (ht != 0 || vt != 0) - outputs[i]->priv->on = !primary_tile_only; + if (self->priv->on == FALSE) + outputs[i]->priv->on = FALSE; + else + outputs[i]->priv->on = !primary_tile_only; if (primary_tile_only) { -- cgit v1.2.1