aboutsummaryrefslogtreecommitdiff
path: root/ime.h (follow)
Commit message (Collapse)AuthorAgeLines
* ime: ime_reset_pending_{preedit,commit} is not used outside ime.cDaniel Eklöf2022-06-15-2/+0
|
* ime: don’t pass ‘term’ to ime_update_cursor_rect()Daniel Eklöf2021-03-25-2/+1
| | | | | | | | | 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).
* ime: move preedit state from terminal struct to the seat structDaniel Eklöf2021-03-25-2/+3
| | | | | | | | | | | | | | | | | This ensures different seat’s don’t step on each others IME pre-edit state. It also removes most dependencies on having a valid term pointer for many IME operations. We’re still not all the way, since we support disabling IME with a private mode, which is per terminal, not seat. Thus, we still require the seat to have keyboard focus on one of our windows. Closes #324. But note that *rendering* of multiple seat’s IME pre-edit strings is still broken.
* Send text_input_rectangle requests for text-inputTadeo Kondrak2021-01-29-0/+3
|
* ime: add functions to enable/disable IME, simplify code that enables IMEDaniel Eklöf2020-12-07-0/+3
| | | | | | | | | | | | | | | | | 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.
* ime: make IME compile-time optionalDaniel Eklöf2020-12-07-0/+10
|
* ime: wip: add text-input object to seatDaniel Eklöf2020-12-07-0/+5