diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-07 10:11:58 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-07 10:11:58 +0000 |
| commit | 7cb49681e76ec84bc89a2e67943bec258f11e553 (patch) | |
| tree | 192e5cde9cf97649fac3017715b3b3520e0ec8d1 /ime.c | |
| parent | main: include uname.sysname when logging host architecture (diff) | |
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.
Diffstat (limited to 'ime.c')
| -rw-r--r-- | ime.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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); } |
