summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-09-22 17:23:50 +1000
committerBastien Nocera <hadess@hadess.net>2015-09-22 12:06:33 +0200
commit0e2f15588a89230e60a7dfe9f4164a8c17baa733 (patch)
tree912fb2ab3189f870b83a0403762643861f8903f6
parenta0d4b1f5fea1a00ac3b62c5f754c7832d84842b8 (diff)
downloadgnome-desktop-0e2f15588a89230e60a7dfe9f4164a8c17baa733.tar.gz
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
-rw-r--r--libgnome-desktop/gnome-rr-output-info.c5
1 files changed, 4 insertions, 1 deletions
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)
{