Merge branch 'xim_cursor_follow' of https://github.com/cjacker/nana into cjacker-xim_cursor_follow
This commit is contained in:
commit
2df2b21830
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user