mirror of
https://github.com/brl/mutter.git
synced 2025-07-05 18:39:52 +00:00
71cfb52ece03f4005bddfee85489e89f0e865edf

If the surface is gone before `meta_xwayland_keyboard_grab_end()` is
called, we would bail out early leaving an empty grab, which will cause
a segfault as soon as a key is pressed later on.
Make sure we clean up the keyboard grab even if the surface is gone.
Closes: https://gitlab.gnome.org/GNOME/mutter/issues/255
(cherry picked from commit 252dd52439
)
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%