mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
We may want to be able to enable/disable IME run-time, even though we have received an ‘enter’ IME event. This enables us to do that. Also add functions to enable/disable IME on a per-terminal instance basis. A terminal may have multiple seats focusing it, and enabling/disabling IME in a terminal instance enables/disables IME on all those seats. Finally, the code to enable IME is simplified; the *only* surface that can ever receive ‘enter’ IME events is the main grid. All other surfaces are sub-surfaces, without their own keyboard focus.
18 lines
410 B
C
18 lines
410 B
C
#pragma once
|
|
|
|
#if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED
|
|
|
|
#include "text-input-unstable-v3.h"
|
|
|
|
extern const struct zwp_text_input_v3_listener text_input_listener;
|
|
|
|
#endif /* FOOT_IME_ENABLED */
|
|
|
|
struct seat;
|
|
|
|
void ime_enable(struct seat *seat);
|
|
void ime_disable(struct seat *seat);
|
|
|
|
void ime_reset_preedit(struct seat *seat);
|
|
void ime_reset_commit(struct seat *seat);
|
|
void ime_reset(struct seat *seat);
|