pepper: emit PEPPER_EVENT_COMPOSITOR_SEAT_REMOVE before destroying a pepper_seat... 07/121407/1
authorSung-Jin Park <sj76.park@samsung.com>
Tue, 28 Mar 2017 03:36:44 +0000 (12:36 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Tue, 28 Mar 2017 03:36:44 +0000 (12:36 +0900)
Change-Id: Ibd49ddc0c4bcde5ccdfdc0843c84bb080b6e1787
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/lib/pepper/input.c

index a358b75..f281932 100644 (file)
@@ -131,6 +131,10 @@ pepper_seat_destroy(pepper_seat_t *seat)
 {
        struct wl_resource *resource, *tmp;
 
+       if (seat->global && seat->compositor)
+               pepper_object_emit_event(&seat->compositor->base,
+                                                                PEPPER_EVENT_COMPOSITOR_SEAT_REMOVE, seat);
+
        if (seat->name)
                free(seat->name);