diff options
author | Simon Ser <contact@emersion.fr> | 2020-02-03 16:42:36 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-02-17 20:52:37 +0100 |
commit | c5376c2d2c7bd4615a6b8dd9ee04f92249080f46 (patch) | |
tree | 68787969930b6733f4e81511a3a06b3788726186 | |
parent | e63b70263a5dcd0e273b3ea8c233767363040646 (diff) |
seat: don't destroy global immediately
-rw-r--r-- | types/seat/wlr_seat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/types/seat/wlr_seat.c b/types/seat/wlr_seat.c index 1a7b00bb..b6b58c91 100644 --- a/types/seat/wlr_seat.c +++ b/types/seat/wlr_seat.c @@ -10,6 +10,7 @@ #include <wlr/types/wlr_seat.h> #include <wlr/util/log.h> #include "types/wlr_seat.h" +#include "util/global.h" #include "util/signal.h" #define SEAT_VERSION 7 @@ -182,7 +183,7 @@ void wlr_seat_destroy(struct wlr_seat *seat) { } } - wl_global_destroy(seat->global); + wlr_global_destroy_safe(seat->global, seat->display); free(seat->pointer_state.default_grab); free(seat->keyboard_state.default_grab); free(seat->touch_state.default_grab); |