[gnome-settings-daemon/randr-hotplug: 13/13] Disable launching the display capplet at the end of the auto-configuration process
- From: Federico Mena Quintero <federico src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-settings-daemon/randr-hotplug: 13/13] Disable launching the display capplet at the end of the auto-configuration process
- Date: Mon, 8 Jun 2009 21:31:15 -0400 (EDT)
commit 88ac4db5b130228d8f399d079b418cf0406ccc45
Author: Federico Mena Quintero <federico novell com>
Date: Sun May 31 19:02:33 2009 -0500
Disable launching the display capplet at the end of the auto-configuration process
The display capplet is not a single-instance app. We have no way to detect if the capplet
is already running; if the user plugs an extra monitor and hits 'Detect displays', then
we should not bring up another instance of the display capplet when we get the RANDR event.
Signed-off-by: Federico Mena Quintero <federico novell com>
---
plugins/xrandr/gsd-xrandr-manager.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/plugins/xrandr/gsd-xrandr-manager.c b/plugins/xrandr/gsd-xrandr-manager.c
index e6394bc..496d9a7 100644
--- a/plugins/xrandr/gsd-xrandr-manager.c
+++ b/plugins/xrandr/gsd-xrandr-manager.c
@@ -1006,7 +1006,22 @@ auto_configure_outputs (GsdXrandrManager *manager, guint32 timestamp)
* liking.
*/
+#if 0
+ /* FIXME: This is disabled for now. The capplet is not a single-instance application.
+ * If you do this:
+ *
+ * 1. Start the display capplet
+ *
+ * 2. Plug an extra monitor
+ *
+ * 3. Hit the "Detect displays" button
+ *
+ * Then we will get a RANDR event because X re-probes the outputs. We don't want to
+ * start up a second display capplet right there!
+ */
+
run_display_capplet (NULL);
+#endif
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]