From 957f3fea028f929cdbd016c155d5e97f852a7b83 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 2 Jun 2011 14:37:11 +0100 Subject: orientation: Add FIXMEs --- plugins/orientation/gsd-orientation-manager.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/orientation/gsd-orientation-manager.c b/plugins/orientation/gsd-orientation-manager.c index 6b5e6e27..f1395494 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); -- cgit v1.2.1