[gnome-settings-daemon] orientation: Add FIXMEs
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] orientation: Add FIXMEs
- Date: Thu, 2 Jun 2011 13:41:24 +0000 (UTC)
commit 957f3fea028f929cdbd016c155d5e97f852a7b83
Author: Bastien Nocera <hadess hadess net>
Date: Thu Jun 2 14:37:11 2011 +0100
orientation: Add FIXMEs
plugins/orientation/gsd-orientation-manager.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plugins/orientation/gsd-orientation-manager.c b/plugins/orientation/gsd-orientation-manager.c
index 6b5e6e2..f139549 100644
--- a/plugins/orientation/gsd-orientation-manager.c
+++ b/plugins/orientation/gsd-orientation-manager.c
@@ -107,7 +107,10 @@ client_uevent_cb (GUdevClient *client,
g_debug ("Received an event from the accelerometer");
- /* FIXME open the device, and read its orientation */
+ /* FIXME
+ * re-enabled the device, open it and read its orientation
+ * with XISelectEvent(dpy, DefaultRootWindow(dpy), { event mask with XI_RawMotion })
+ */
}
static gboolean
@@ -126,6 +129,8 @@ gsd_orientation_manager_idle_cb (GsdOrientationManager *manager)
manager->priv->device_node,
manager->priv->device_id);
+ /* FIXME disable accelerometer now with "Device Enabled" */
+
manager->priv->client = g_udev_client_new (subsystems);
g_signal_connect (G_OBJECT (manager->priv->client), "uevent",
G_CALLBACK (client_uevent_cb), manager);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]