[gnome-desktop] gnome-rr: Fix turning off tiled monitors
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] gnome-rr: Fix turning off tiled monitors
- Date: Tue, 22 Sep 2015 10:07:12 +0000 (UTC)
commit 0e2f15588a89230e60a7dfe9f4164a8c17baa733
Author: Dave Airlie <airlied redhat com>
Date: Tue Sep 22 17:23:50 2015 +1000
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 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 692e7ef..6d48001 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]