Skip to content

Commit

Permalink
Implement support for text-input preedit_shown flag
Browse files Browse the repository at this point in the history
  • Loading branch information
tadeokondrak committed Mar 23, 2021
1 parent 8392170 commit 98394ca
Show file tree
Hide file tree
Showing 3 changed files with 456 additions and 1 deletion.
2 changes: 2 additions & 0 deletions anthywl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,8 @@ static void zwp_input_method_v2_done(
seat->done_events_received++;
if (!was_active && seat->active) {
seat->is_selecting = false;
seat->is_composing_popup_visible = seat->content_type_hint
& ZWP_TEXT_INPUT_V3_CONTENT_HINT_PREEDIT_SHOWN;
seat->is_selecting_popup_visible = false;
anthywl_buffer_clear(&seat->buffer);
anthywl_seat_draw_popup(seat);
Expand Down
2 changes: 1 addition & 1 deletion protocol/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ wayland_scanner_bin = find_program(
)

protocols = {
'text-input-v3': wayland_protocols_dir / 'unstable/text-input/text-input-unstable-v3.xml',
'text-input-v3': 'text-input-unstable-v3.xml',
'zwp-input-method-unstable-v2': 'input-method-unstable-v2.xml',
'zwp-virtual-keyboard-unstable-v1': 'virtual-keyboard-unstable-v1.xml',
}
Expand Down
Loading

0 comments on commit 98394ca

Please sign in to comment.