cursor-tracker: Don't require a screen

This allows us to do initialization earlier and not have to poke into
Wayland internals from the cursor tracker.
This commit is contained in:
Jasper St. Pierre
2014-07-22 11:09:12 -04:00
parent 6ee5a1437c
commit e49bbe2ed8
4 changed files with 18 additions and 48 deletions

View File

@@ -207,6 +207,8 @@ meta_wayland_pointer_init (MetaWaylandPointer *pointer,
manager = clutter_device_manager_get_default ();
pointer->device = clutter_device_manager_get_core_device (manager, CLUTTER_POINTER_DEVICE);
pointer->cursor_tracker = meta_cursor_tracker_get_for_screen (NULL);
}
void