mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-21 05:33:45 -04:00
wayland: fix pointer cap lost handling
Before this, on compositor without cursor-shape support, a pointer capability lost of the seat makes foot crash.
This commit is contained in:
parent
e6d1e0cc27
commit
0b8791d1c5
1 changed files with 4 additions and 2 deletions
|
|
@ -341,8 +341,10 @@ seat_handle_capabilities(void *data, struct wl_seat *wl_seat,
|
||||||
} else {
|
} else {
|
||||||
if (seat->wl_pointer != NULL) {
|
if (seat->wl_pointer != NULL) {
|
||||||
#if defined(HAVE_CURSOR_SHAPE)
|
#if defined(HAVE_CURSOR_SHAPE)
|
||||||
wp_cursor_shape_device_v1_destroy(seat->pointer.shape_device);
|
if (seat->pointer.shape_device != NULL) {
|
||||||
seat->pointer.shape_device = NULL;
|
wp_cursor_shape_device_v1_destroy(seat->pointer.shape_device);
|
||||||
|
seat->pointer.shape_device = NULL;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
wl_pointer_release(seat->wl_pointer);
|
wl_pointer_release(seat->wl_pointer);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue