diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-12-02 17:52:50 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-12-07 19:44:10 +0000 |
| commit | 8c3d48c5cdb2ae4e8bdbdc48f155f53d1a92973b (patch) | |
| tree | 53a2852bf7d0f2f642932eeeaf3199f5e4dc878c /wayland.c | |
| parent | ime: wip: commit all changes in ‘done()’ (diff) | |
ime: render pre-edit text
This is done by allocating cells for the pre-edit text when receiving
the text-input::done() call, and populating them by converting the
utf-8 formatted pre-edit text to wchars.
We also convert the pre-edit cursor position to cell positions (it can
cover multiple cells).
When rendering, we simply render the pre-edit cells on-top off the
regular grid. While doing so, we also mark the underlying, “real”,
cells as dirty, to ensure they are re-rendered when the pre-edit text
is modified or removed.
Diffstat (limited to 'wayland.c')
| -rw-r--r-- | wayland.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -191,8 +191,8 @@ seat_destroy(struct seat *seat) free(seat->clipboard.text); free(seat->primary.text); - free(seat->ime.preedit.text); - free(seat->ime.commit.text); + free(seat->ime.preedit.pending.text); + free(seat->ime.commit.pending.text); free(seat->name); } |
