evdev: Associate devices with the first created stage
authorNeil Roberts <neil@linux.intel.com>
Tue, 17 Jan 2012 13:37:26 +0000 (13:37 +0000)
committerNeil Roberts <neil@linux.intel.com>
Thu, 1 Mar 2012 11:41:51 +0000 (11:41 +0000)
commita3bbcff946295f6e7232697fd167437baef6b785
tree9c95d965701d477499334cb9fb45ce25932f0183
parent1bfd1d85eb2dd4e2093c5c7e6833da4196110177
evdev: Associate devices with the first created stage

Because evdev isn't associated with the display system, it doesn't
have any easy way to associate an input device with a stage.
Previously Clutter would never set a stage for an input device and
leave it up to the application to set it. To make it easier for
applications which just have a single fullscreen stage (which is
probably the most common use case for evdev) the device manager now
associates all input devices with the first stage that is created
unless something has already set a stage.

Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
clutter/evdev/clutter-device-manager-evdev.c