mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-03-15 21:05:37 +00:00
[client] wayland: handle NULL wl_keyboard on destruction
This commit is contained in:
parent
94684324f4
commit
eea0ced627
1 changed files with 6 additions and 1 deletions
|
@ -420,7 +420,12 @@ void waylandInputFree(void)
|
|||
|
||||
if (wlWm.pointer)
|
||||
waylandCleanUpPointer();
|
||||
wl_keyboard_destroy(wlWm.keyboard);
|
||||
|
||||
// The only legal way the keyboard can be null is if it never existed.
|
||||
// When unplugged, the compositor must have an inert object.
|
||||
if (wlWm.keyboard)
|
||||
wl_keyboard_destroy(wlWm.keyboard);
|
||||
|
||||
wl_seat_destroy(wlWm.seat);
|
||||
|
||||
if (wlWm.xkbState)
|
||||
|
|
Loading…
Add table
Reference in a new issue