Fix: Wayland/IME accessing stale IME data
Guard IME data access to ensure stale IME data isn't used. Ref !146834
This commit is contained in:
committed by
Campbell Barton
parent
ab4a66bd48
commit
083cc599f9
@@ -3472,7 +3472,7 @@ const wmIMEData *ui_but_ime_data_get(uiBut *but)
|
||||
{
|
||||
uiHandleButtonData *data = but->semi_modal_state ? but->semi_modal_state : but->active;
|
||||
|
||||
if (data && data->window) {
|
||||
if (data && data->window && data->window->runtime->ime_data_is_composing) {
|
||||
return data->window->runtime->ime_data;
|
||||
}
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user