Source

9menu-patches / 04_signedness.diff

Description: popup-exec patch rolled in
Forwarded: yes
Author: Andrew Stribblehill <ads@debian.org>
Origin: vendor
Last-Update: 2005-09-05 

--- a/9menu.c
+++ b/9menu.c
@@ -101,7 +101,7 @@
 /* the 9menu icon, for garish window managers */
 #define nine_menu_width 40
 #define nine_menu_height 40
-static unsigned char nine_menu_bits[] = {
+static char nine_menu_bits[] = {
    0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0x00, 0x00, 0x04, 0x00,
    0x80, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0xfc, 0xff, 0xff, 0x00,
    0x00, 0xfc, 0xff, 0xff, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0x04,
@@ -781,7 +781,7 @@
 	Window wdummy;
 
 	if (XQueryPointer(dpy, menuwin, &wdummy, &wdummy, &x, &y,
-			       &dummy, &dummy, &dummy))
+			       &dummy, &dummy, (unsigned int *)&dummy))
 		XMoveWindow(dpy, menuwin, x-wide/2, y-cur*high-high/2);
 }
 
@@ -800,7 +800,7 @@
 	offset += 6;	/* fudge factor */
 
 	if (XQueryPointer(dpy, menuwin, &wdummy, &wdummy, &savex, &savey,
-			       &dummy, &dummy, &dummy))
+			       &dummy, &dummy, (unsigned int *)&dummy))
 		XWarpPointer(dpy, None, menuwin, 0, 0, 0, 0,
 				wide/2, cur*high-high/2+offset);
 }