mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
ime: enter(): remove assertion on surface kind being TERM_SURF_GRID
The main surface is the *only* IME capable surface we have. If the compositor is sending an ime::enter event for another surface, it is a compositor bug, not a foot bug.
This commit is contained in:
parent
0d012db3a8
commit
7cb49681e7
1 changed files with 1 additions and 5 deletions
6
ime.c
6
ime.c
|
|
@ -25,11 +25,7 @@ enter(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
|
|||
LOG_DBG("enter: seat=%s", seat->name);
|
||||
|
||||
/* The main grid is the *only* input-receiving surface we have */
|
||||
/* TODO: can we receive text_input::enter() _before_ keyboard_enter()? */
|
||||
struct terminal UNUSED *term = seat->kbd_focus;
|
||||
xassert(term != NULL);
|
||||
xassert(term_surface_kind(term, surface) == TERM_SURF_GRID);
|
||||
|
||||
xassert(seat->kbd_focus != NULL);
|
||||
ime_enable(seat);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue