diff --git a/src/wayland/meta-wayland-seat.c b/src/wayland/meta-wayland-seat.c index 3484d0879..bebaf6d07 100644 --- a/src/wayland/meta-wayland-seat.c +++ b/src/wayland/meta-wayland-seat.c @@ -255,6 +255,17 @@ meta_wayland_seat_new (struct wl_display *display) 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 notify_motion (MetaWaylandSeat *seat, const ClutterEvent *event) @@ -493,14 +504,3 @@ meta_wayland_seat_repick (MetaWaylandSeat *seat, 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); -} diff --git a/src/wayland/meta-wayland-seat.h b/src/wayland/meta-wayland-seat.h index a038e2e32..1cd0c839f 100644 --- a/src/wayland/meta-wayland-seat.h +++ b/src/wayland/meta-wayland-seat.h @@ -70,6 +70,9 @@ struct _MetaWaylandSeat MetaWaylandSeat * meta_wayland_seat_new (struct wl_display *display); +void +meta_wayland_seat_free (MetaWaylandSeat *seat); + void meta_wayland_seat_update (MetaWaylandSeat *seat, const ClutterEvent *event); @@ -85,7 +88,4 @@ meta_wayland_seat_repick (MetaWaylandSeat *seat, void meta_wayland_seat_update_cursor_surface (MetaWaylandSeat *seat); -void -meta_wayland_seat_free (MetaWaylandSeat *seat); - #endif /* __META_WAYLAND_SEAT_H__ */