--- src/screen.c.orig	Sun May  2 14:18:03 1999
+++ src/screen.c	Sun May  2 14:16:50 1999
@@ -3292,3 +3292,15 @@
 #endif
   fprintf(stderr, "%s\n", name[color]);
 }
+
+#ifdef USE_XIM
+void
+setPosition(XPoint *pos)
+{
+  XWindowAttributes xwa ;
+
+  XGetWindowAttributes( Xdisplay, TermWin.vt, &xwa ) ;
+  pos->x = Col2Pixel   ( screen.col ) + xwa.x;
+  pos->y = Height2Pixel((screen.row + 1)) + xwa.y + TermWin.internalBorder - 2;
+}
+#endif
