[gnome-settings-daemon/docking-stations] Ensure outputs start at (0, 0) when turning off the laptop's display
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/docking-stations] Ensure outputs start at (0, 0) when turning off the laptop's display
- Date: Tue, 22 Nov 2011 20:50:04 +0000 (UTC)
commit 6727199a7524b073b04d7e0469f1ed8031939d1b
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Nov 22 09:48:17 2011 -0600
Ensure outputs start at (0, 0) when turning off the laptop's display
Signed-off-by: Federico Mena Quintero <federico gnome org>
plugins/xrandr/gsd-xrandr-manager.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/xrandr/gsd-xrandr-manager.c b/plugins/xrandr/gsd-xrandr-manager.c
index 6d6e364..b0cf2b8 100644
--- a/plugins/xrandr/gsd-xrandr-manager.c
+++ b/plugins/xrandr/gsd-xrandr-manager.c
@@ -410,6 +410,9 @@ turn_off_laptop_display_in_configuration (GnomeRRScreen *screen, GnomeRRConfig *
if (non_laptop_outputs_are_active (config, laptop_info))
gnome_rr_output_info_set_active (laptop_info, FALSE);
}
+
+ /* Adjust the offsets of outputs so they start at (0, 0) */
+ gnome_rr_config_sanitize (config);
}
/* This function effectively centralizes the use of gnome_rr_config_apply_from_filename_with_time().
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]