evdev: Set the initial pointer position for all pointer devices

Rather than just those on the main seat.

https://bugzilla.gnome.org/show_bug.cgi?id=726199
This commit is contained in:
Jasper St. Pierre 2014-03-10 10:19:09 -04:00
parent e23f77f1e6
commit 5facd710c8

View File

@ -659,6 +659,7 @@ clutter_seat_evdev_new (ClutterDeviceManagerEvdev *manager_evdev,
device = _clutter_input_device_evdev_new_virtual ( device = _clutter_input_device_evdev_new_virtual (
manager, seat, CLUTTER_POINTER_DEVICE); manager, seat, CLUTTER_POINTER_DEVICE);
_clutter_input_device_set_stage (device, priv->stage); _clutter_input_device_set_stage (device, priv->stage);
_clutter_input_device_set_coords (device, NULL, INITIAL_POINTER_X, INITIAL_POINTER_Y, NULL);
_clutter_device_manager_add_device (manager, device); _clutter_device_manager_add_device (manager, device);
seat->core_pointer = device; seat->core_pointer = device;
@ -1193,10 +1194,6 @@ clutter_device_manager_evdev_constructed (GObject *gobject)
g_assert (priv->main_seat != NULL); g_assert (priv->main_seat != NULL);
g_assert (priv->main_seat->core_pointer != NULL); g_assert (priv->main_seat->core_pointer != NULL);
_clutter_input_device_set_coords (priv->main_seat->core_pointer,
NULL,
INITIAL_POINTER_X, INITIAL_POINTER_Y,
NULL);
source = clutter_event_source_new (manager_evdev); source = clutter_event_source_new (manager_evdev);
priv->event_source = source; priv->event_source = source;