Fix #141777: Crash closing an unfocused window on Wayland

This commit is contained in:
Campbell Barton
2025-07-20 16:31:57 +10:00
parent 1762a66b82
commit 008ed81d26

View File

@@ -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");