diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-03-25 08:36:38 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-03-25 08:36:38 +0000 |
| commit | 26dc92b492a248250639689047835db333866801 (patch) | |
| tree | 47e41f136b2b870c510aa27ec2df210c51e6ee61 /terminal.h | |
| parent | Merge branch 'clear-linebreak-flag-when-printing' (diff) | |
| parent | ime: set ‘have_warned = true’ to avoid warning over and over again (diff) | |
Merge branch 'per-seat-ime-state'
Closes #411
Closes #324
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 17 |
1 files changed, 2 insertions, 15 deletions
@@ -567,20 +567,7 @@ struct terminal { struct grid *url_grid_snapshot; #if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED - struct { - bool enabled; - struct { - wchar_t *text; - struct cell *cells; - int count; - - struct { - bool hidden; - int start; /* Cell index, inclusive */ - int end; /* Cell index, exclusive */ - } cursor; - } preedit; - } ime; + bool ime_enabled; #endif bool is_shutting_down; @@ -713,7 +700,7 @@ bool term_view_to_text( bool term_ime_is_enabled(const struct terminal *term); void term_ime_enable(struct terminal *term); void term_ime_disable(struct terminal *term); -void term_ime_reset(struct terminal *term); +bool term_ime_reset(struct terminal *term); void term_ime_set_cursor_rect( struct terminal *term, int x, int y, int width, int height); |
