mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
seat: don't destroy global immediately
This commit is contained in:
parent
e63b70263a
commit
c5376c2d2c
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue