summaryrefslogtreecommitdiff
path: root/lib/libX11/modules/im/ximcp/imDefLkup.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libX11/modules/im/ximcp/imDefLkup.c')
-rw-r--r--lib/libX11/modules/im/ximcp/imDefLkup.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/libX11/modules/im/ximcp/imDefLkup.c b/lib/libX11/modules/im/ximcp/imDefLkup.c
index aa1aaaf06..66e4add49 100644
--- a/lib/libX11/modules/im/ximcp/imDefLkup.c
+++ b/lib/libX11/modules/im/ximcp/imDefLkup.c
@@ -216,8 +216,13 @@ _XimRespSyncReply(
Xic ic,
BITMASK16 mode)
{
- if (mode & XimSYNCHRONUS) /* SYNC Request */
- MARK_NEED_SYNC_REPLY(ic);
+ if (mode & XimSYNCHRONUS) /* SYNC Request */ {
+ if (IS_FOCUSED(ic))
+ MARK_NEED_SYNC_REPLY(ic);
+ else
+ _XimProcSyncReply(ic->core.im, ic);
+ }
+
return True;
}
@@ -466,7 +471,7 @@ _XimGetWindowEventmask(
Xim im = (Xim )ic->core.im;
XWindowAttributes atr;
- if (!_XGetWindowAttributes(im->core.display, ic->core.focus_window, &atr))
+ if (!XGetWindowAttributes(im->core.display, ic->core.focus_window, &atr))
return 0;
return (EVENTMASK)atr.your_event_mask;
}