Merge branch 'cjacker-xim_cursor_follow' into hotfix-1.5.5

This commit is contained in:
Jinhao 2017-10-29 02:17:59 +08:00
commit e5dc98bf4e

View File

@ -835,6 +835,19 @@ namespace detail
i->second->reinstate();
i->second->pos = pos;
}
auto addr = i->second;
if(addr && addr->input_context) {
XPoint spot;
XVaNestedList list;
spot.x = pos.x;
spot.y = pos.y + addr->size.height;
list = ::XVaCreateNestedList(0, XNSpotLocation, &spot,
XNForeground, 0,
XNBackground, 0,
(void *)0);
::XSetICValues(addr->input_context, XNPreeditAttributes, list, NULL);
::XFree(list);
}
}
void platform_spec::caret_visible(native_window_type wd, bool vis)