mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
In all instances where we call ime_update_cursor_rect(), the ‘term’ argument is the same as seat->kbd_focus. So, let ime_update_cursor_rect() use that directly instead. Also make ime_send_cursor_rect() static (i.e. local to ime.c).
21 lines
542 B
C
21 lines
542 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;
|
|
struct terminal;
|
|
|
|
void ime_enable(struct seat *seat);
|
|
void ime_disable(struct seat *seat);
|
|
void ime_update_cursor_rect(struct seat *seat);
|
|
|
|
void ime_reset_pending_preedit(struct seat *seat);
|
|
void ime_reset_pending_commit(struct seat *seat);
|
|
void ime_reset_pending(struct seat *seat);
|
|
void ime_reset_preedit(struct seat *seat);
|