display: Add a global MetaGestureTracker
This commit is contained in:

committed by
Jasper St. Pierre

parent
59382bace2
commit
a9ba98686f
@ -808,6 +808,9 @@ meta_display_open (void)
|
||||
meta_screen_init_workspaces (screen);
|
||||
meta_screen_create_guard_window (screen);
|
||||
|
||||
/* Set up touch support */
|
||||
the_display->gesture_tracker = meta_gesture_tracker_new (0);
|
||||
|
||||
/* We know that if mutter is running as a Wayland compositor,
|
||||
* we start out with no windows.
|
||||
*/
|
||||
@ -3152,3 +3155,9 @@ meta_display_create_x_cursor (MetaDisplay *display,
|
||||
{
|
||||
return meta_cursor_create_x_cursor (display->xdisplay, cursor);
|
||||
}
|
||||
|
||||
MetaGestureTracker *
|
||||
meta_display_get_gesture_tracker (MetaDisplay *display)
|
||||
{
|
||||
return display->gesture_tracker;
|
||||
}
|
||||
|
Reference in New Issue
Block a user