diff --git a/modules/input/imwayland.c b/modules/input/imwayland.c index 25144f314c..7a9a604126 100644 --- a/modules/input/imwayland.c +++ b/modules/input/imwayland.c @@ -121,6 +121,9 @@ notify_external_change (GtkIMContextWayland *context) { gboolean result; + if (!global->current) + return; + context->surrounding_change = ZWP_TEXT_INPUT_V3_CHANGE_CAUSE_OTHER; g_signal_emit_by_name (global->current, "retrieve-surrounding", &result); }