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:
Daniel Eklöf 2021-02-07 11:11:58 +01:00
parent 0d012db3a8
commit 7cb49681e7
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

6
ime.c
View file

@ -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);
}