seat: Reorder

This commit is contained in:
Jasper St. Pierre 2014-04-17 18:57:25 -04:00
parent 30ecd7c770
commit 1be97f3d59
2 changed files with 14 additions and 14 deletions

View File

@ -255,6 +255,17 @@ meta_wayland_seat_new (struct wl_display *display)
return seat; return seat;
} }
void
meta_wayland_seat_free (MetaWaylandSeat *seat)
{
set_cursor_surface (seat, NULL);
meta_wayland_pointer_release (&seat->pointer);
meta_wayland_keyboard_release (&seat->keyboard);
g_slice_free (MetaWaylandSeat, seat);
}
static void static void
notify_motion (MetaWaylandSeat *seat, notify_motion (MetaWaylandSeat *seat,
const ClutterEvent *event) const ClutterEvent *event)
@ -493,14 +504,3 @@ meta_wayland_seat_repick (MetaWaylandSeat *seat,
meta_wayland_pointer_update_current_focus (pointer, surface); meta_wayland_pointer_update_current_focus (pointer, surface);
} }
void
meta_wayland_seat_free (MetaWaylandSeat *seat)
{
set_cursor_surface (seat, NULL);
meta_wayland_pointer_release (&seat->pointer);
meta_wayland_keyboard_release (&seat->keyboard);
g_slice_free (MetaWaylandSeat, seat);
}

View File

@ -70,6 +70,9 @@ struct _MetaWaylandSeat
MetaWaylandSeat * MetaWaylandSeat *
meta_wayland_seat_new (struct wl_display *display); meta_wayland_seat_new (struct wl_display *display);
void
meta_wayland_seat_free (MetaWaylandSeat *seat);
void void
meta_wayland_seat_update (MetaWaylandSeat *seat, meta_wayland_seat_update (MetaWaylandSeat *seat,
const ClutterEvent *event); const ClutterEvent *event);
@ -85,7 +88,4 @@ meta_wayland_seat_repick (MetaWaylandSeat *seat,
void void
meta_wayland_seat_update_cursor_surface (MetaWaylandSeat *seat); meta_wayland_seat_update_cursor_surface (MetaWaylandSeat *seat);
void
meta_wayland_seat_free (MetaWaylandSeat *seat);
#endif /* __META_WAYLAND_SEAT_H__ */ #endif /* __META_WAYLAND_SEAT_H__ */