aboutsummaryrefslogtreecommitdiff
path: root/ime.h (unfollow)
Commit message (Collapse)AuthorLines
2022-06-15ime: ime_reset_pending_{preedit,commit} is not used outside ime.cDaniel Eklöf-2/+0
2021-03-25ime: don’t pass ‘term’ to ime_update_cursor_rect()Daniel Eklöf-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).
2021-03-25ime: move preedit state from terminal struct to the seat structDaniel Eklöf-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.
2021-01-29Send text_input_rectangle requests for text-inputTadeo Kondrak-0/+3
2021-01-29Send text_input_rectangle requests for text-inputTadeo Kondrak-0/+3
2020-12-07ime: add functions to enable/disable IME, simplify code that enables IMEDaniel Eklöf-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.
2020-12-07ime: make IME compile-time optionalDaniel Eklöf-0/+10
2020-12-07ime: wip: add text-input object to seatDaniel Eklöf-0/+5
2020-10-10selection: use appropriate check for PRIMARY pasteSergey Nazaryev-19/+0
Assume it could be a copy-paste typo. We should check PRIMARY, not CLIPBOARD. Without this fix, we can't use PRIMARY until we copy anything to CLIPBOARD.