Fix #141777: Crash closing an unfocused window on Wayland
This commit is contained in:
@@ -5759,7 +5759,8 @@ static void text_input_handle_enter(void *data,
|
||||
zwp_text_input_v3 * /*zwp_text_input_v3*/,
|
||||
wl_surface *surface)
|
||||
{
|
||||
if (!ghost_wl_surface_own(surface)) {
|
||||
/* Can be null when closing a window, see: #141777. */
|
||||
if (!ghost_wl_surface_own_with_null_check(surface)) {
|
||||
return;
|
||||
}
|
||||
CLOG_DEBUG(LOG, "enter");
|
||||
|
||||
Reference in New Issue
Block a user