XEmacs 21.2.13
[chise/xemacs-chise.git.1] / src / balloon_help.c
index b73a711..3410129 100644 (file)
@@ -32,8 +32,8 @@ Boston, MA 02111-1307, USA.  */
 
 #include <config.h>
 #include <string.h>
-#include <stdio.h>
 #include <stdlib.h>
+#include <stdio.h>
 #include <assert.h>
 
 #include <X11/Xlib.h>
@@ -86,8 +86,6 @@ static GC     b_maskGC;
 static CONST char* b_text;
 static int b_width, b_height;
 
-static int b_lastX, b_lastY;
-
 static XtIntervalId b_timer;
 static unsigned long b_delay;
 
@@ -364,11 +362,8 @@ show_help (XtPointer data, XtIntervalId* id)
       /* make sure it is still ok with offset */
       shape = get_shape (shape, x, y, b_width, b_height, b_screenWidth, b_screenHeight);
 
-      b_lastX = x;
-      b_lastY = y;
       b_lastShape = shape;
 
-
       make_mask (shape, x, y, b_width, b_height);
 
       XShapeCombineMask (b_dpy, b_win, ShapeBounding, 0, 0, b_mask, ShapeSet);
@@ -598,9 +593,6 @@ balloon_help_move_to_pointer (void)
 
       if (shape == b_lastShape)
        {
-         b_lastX = x;
-         b_lastY = y;
-
          XMoveWindow (b_dpy, b_win,
                       shape & SHAPE_CONE_LEFT ? x : x - b_width,
                       shape & SHAPE_CONE_TOP  ? y : y - b_height);