[gnome-settings-daemon] color: Ensure we remove the display device from colord when the monitor is removed
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] color: Ensure we remove the display device from colord when the monitor is removed
- Date: Sun, 12 Jun 2011 12:55:12 +0000 (UTC)
commit 3ec6fb90dcd9bf94e8469fcbeca18be843cd069f
Author: Richard Hughes <richard hughsie com>
Date: Sun Jun 12 13:54:36 2011 +0100
color: Ensure we remove the display device from colord when the monitor is removed
We want to match a metadata entry, not use the xrandr name as the device name.
plugins/color/gsd-color-manager.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index d5dfba8..62df187 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -1245,11 +1245,12 @@ gnome_rr_screen_output_removed_cb (GnomeRRScreen *screen,
{
g_debug ("output %s removed",
gnome_rr_output_get_name (output));
- cd_client_find_device (manager->priv->client,
- gnome_rr_output_get_name (output),
- NULL,
- gcm_session_screen_removed_find_device_cb,
- manager);
+ cd_client_find_device_by_property (manager->priv->client,
+ CD_DEVICE_METADATA_XRANDR_NAME,
+ gnome_rr_output_get_name (output),
+ NULL,
+ gcm_session_screen_removed_find_device_cb,
+ manager);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]