summaryrefslogtreecommitdiff
path: root/src/command.c
diff options
context:
space:
mode:
authorMichael Jennings <mej@kainx.org>2001-12-04 01:22:07 +0000
committerMichael Jennings <mej@kainx.org>2001-12-04 01:22:07 +0000
commit1e97991b6a8a5afd67c9268de6d2a232681b80bc (patch)
treea4f85e4b963adda2256f2001a5679ee779923728 /src/command.c
parent7d2e4386b3a45b936282ac5567f61718431593f6 (diff)
downloadeterm-1e97991b6a8a5afd67c9268de6d2a232681b80bc.tar.gz
Mon Dec 3 20:16:39 2001 Michael Jennings (mej)
Patches from Paul Brannan <pbranna@clemson.edu>, Klaus Elsbernd <elsbernd@dfki.uni-kl.de>, and Derrick Moser <d2moser@calum.csclub.uwaterloo.ca> which appeared while I was away. Fixes for mouse wheel reporting and reset handling (Paul), Solaris portability (Klaus), and XIM (Derrick). Getting ready to release 0.9.2 soonish. SVN revision: 5745
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c
index 9bf3d90..ddc4102 100644
--- a/src/command.c
+++ b/src/command.c
@@ -2020,12 +2020,20 @@ xim_real_init(void)
void
xim_set_status_position(void)
{
- XRectangle preedit_rect, status_rect, *needed_rect;
+ XRectangle preedit_rect, status_rect, *needed_rect, rect;
XVaNestedList preedit_attr, status_attr;
+ XPoint spot;
REQUIRE(xim_input_context != NULL);
- if (xim_input_style & XIMPreeditArea) {
+ if (xim_input_style & XIMPreeditPosition) {
+ xim_set_size(&rect);
+ xim_get_position(&spot);
+
+ preedit_attr = XVaCreateNestedList(0, XNArea, &rect, XNSpotLocation, &spot, NULL);
+ XSetICValues(xim_input_context, XNPreeditAttributes, preedit_attr, NULL);
+ XFree(preedit_attr);
+ } else if (xim_input_style & XIMPreeditArea) {
/* Getting the necessary width of preedit area */
status_attr = XVaCreateNestedList(0, XNAreaNeeded, &needed_rect, NULL);
XGetICValues(xim_input_context, XNStatusAttributes, status_attr, NULL);