diff src/balloon_help.c @ 380:8626e4521993 r21-2-5

Import from CVS: tag r21-2-5
author cvs
date Mon, 13 Aug 2007 11:07:10 +0200
parents c5d627a313b1
children 6719134a07c2
line wrap: on
line diff
--- a/src/balloon_help.c	Mon Aug 13 11:06:08 2007 +0200
+++ b/src/balloon_help.c	Mon Aug 13 11:07:10 2007 +0200
@@ -32,7 +32,6 @@
 
 #include <config.h>
 #include <string.h>
-#include <stdio.h>
 #include <stdlib.h>
 #include <assert.h>
 
@@ -86,8 +85,6 @@
 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 +361,8 @@
       /* 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 +592,6 @@
 
       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);