|
|
@ -92,13 +92,18 @@ static void relay_send_im_state(struct sway_input_method_relay *relay,
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// TODO: only send each of those if they were modified
|
|
|
|
// TODO: only send each of those if they were modified
|
|
|
|
wlr_input_method_v2_send_surrounding_text(input_method,
|
|
|
|
if (input->active_features & WLR_TEXT_INPUT_V3_FEATURE_SURROUNDING_TEXT) {
|
|
|
|
input->current.surrounding.text, input->current.surrounding.cursor,
|
|
|
|
wlr_input_method_v2_send_surrounding_text(input_method,
|
|
|
|
input->current.surrounding.anchor);
|
|
|
|
input->current.surrounding.text, input->current.surrounding.cursor,
|
|
|
|
|
|
|
|
input->current.surrounding.anchor);
|
|
|
|
|
|
|
|
}
|
|
|
|
wlr_input_method_v2_send_text_change_cause(input_method,
|
|
|
|
wlr_input_method_v2_send_text_change_cause(input_method,
|
|
|
|
input->current.text_change_cause);
|
|
|
|
input->current.text_change_cause);
|
|
|
|
wlr_input_method_v2_send_content_type(input_method,
|
|
|
|
if (input->active_features & WLR_TEXT_INPUT_V3_FEATURE_CONTENT_TYPE) {
|
|
|
|
input->current.content_type.hint, input->current.content_type.purpose);
|
|
|
|
wlr_input_method_v2_send_content_type(input_method,
|
|
|
|
|
|
|
|
input->current.content_type.hint,
|
|
|
|
|
|
|
|
input->current.content_type.purpose);
|
|
|
|
|
|
|
|
}
|
|
|
|
wlr_input_method_v2_send_done(input_method);
|
|
|
|
wlr_input_method_v2_send_done(input_method);
|
|
|
|
// TODO: pass intent, display popup size
|
|
|
|
// TODO: pass intent, display popup size
|
|
|
|
}
|
|
|
|
}
|
|
|
|