diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2023-11-24 19:24:42 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-24 19:24:42 +0400 |
commit | 6017326d8293b67eff952ebba2310ea070537f55 (patch) | |
tree | 8b36e70e281ae0683ffaf85634878ce7b9495082 /alacritty_terminal | |
parent | 1152aea66a4bf254973712da03489f781c3e15de (diff) | |
download | alacritty-6017326d8293b67eff952ebba2310ea070537f55.tar.gz alacritty-6017326d8293b67eff952ebba2310ea070537f55.zip |
Fix IME popup positioning
When setting cursor area, the popup will be placed either above or
below not obscuring the supplied region, however we were still
offsetting line with `+1` putting the cursor at the bottom of the line,
and given that area is from the top-left corner, the wrong area
was marked for not being obscured.
It was also discovered that some compositors, like GNOME, position
IME in the bottom right corner of the supplied region, which is wrong,
but it renders IME popup not very useful, since it's far away from
the place it should be, thus try to not obscure just a few characters
near the cursor.
Given that X11 doesn't support area setting, it uses the old logic
with offsetting.
Co-developed-by: lilydjwg <lilydjwg@gmail.com>
Signed-off-by: lilydjwg <lilydjwg@gmail.com>
Diffstat (limited to 'alacritty_terminal')
0 files changed, 0 insertions, 0 deletions