diff options
author | Bastien Nocera <hadess@hadess.net> | 2011-06-02 14:37:11 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2011-06-02 14:40:19 +0100 |
commit | 957f3fea028f929cdbd016c155d5e97f852a7b83 (patch) | |
tree | 03900dd64bcb0c691462416bd39b333b17a0e6c7 | |
parent | b6b1318bed4767544bcb9f35761cef828864557f (diff) | |
download | gnome-settings-daemon-957f3fea028f929cdbd016c155d5e97f852a7b83.tar.gz |
orientation: Add FIXMEs
-rw-r--r-- | 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 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); |