From 4ceb95d2ca5f5a52a77bfcada47d5befc6ab1fd1 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Tue, 30 Nov 2010 14:50:13 +0000 Subject: [PATCH] evdev: Add a comment to revisit the GSource management with glib 2.28 With glib 2.28, we'll be able to have one GSource per device manager with child sources for earch device. Make a note to update the code in a few months. --- clutter/evdev/clutter-device-manager-evdev.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/clutter/evdev/clutter-device-manager-evdev.c b/clutter/evdev/clutter-device-manager-evdev.c index 7e120934e..955718fb6 100644 --- a/clutter/evdev/clutter-device-manager-evdev.c +++ b/clutter/evdev/clutter-device-manager-evdev.c @@ -74,7 +74,12 @@ static const gchar *subsystems[] = { "input", NULL }; * ClutterEventSource management * * The device manager is responsible for managing the GSource when devices - * appear and disappear from the system + * appear and disappear from the system. + * + * FIXME: For now, we associate a GSource with every single device. Starting + * from glib 2.28 we can use g_source_add_child_source() to have a single + * GSource for the device manager, each device becoming a child source. Revisit + * this once we depend on glib >= 2.28. */