mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
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:
parent
e23f77f1e6
commit
5facd710c8
@ -659,6 +659,7 @@ clutter_seat_evdev_new (ClutterDeviceManagerEvdev *manager_evdev,
|
||||
device = _clutter_input_device_evdev_new_virtual (
|
||||
manager, seat, CLUTTER_POINTER_DEVICE);
|
||||
_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);
|
||||
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->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);
|
||||
priv->event_source = source;
|
||||
|
Loading…
Reference in New Issue
Block a user