forked from AuroraMiddleware/gtk
Merge branch '3-24-fix-imwayland-cursor' into 'gtk-3-24'
imwayland: Fix get_preedit_string cursor position See merge request GNOME/gtk!1251
This commit is contained in:
commit
5986e100eb
@ -582,7 +582,8 @@ gtk_im_context_wayland_get_preedit_string (GtkIMContext *context,
|
|||||||
if (str)
|
if (str)
|
||||||
*str = g_strdup (preedit_str);
|
*str = g_strdup (preedit_str);
|
||||||
if (cursor_pos)
|
if (cursor_pos)
|
||||||
*cursor_pos = context_wayland->current_preedit.cursor_begin;
|
*cursor_pos = g_utf8_strlen (preedit_str,
|
||||||
|
context_wayland->current_preedit.cursor_begin);
|
||||||
|
|
||||||
if (attrs)
|
if (attrs)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user