changeset 14728:3ce3907bd215

(motion_event_is_in_menu): Make x and y signed.
author Richard M. Stallman <rms@gnu.org>
date Fri, 01 Mar 1996 20:11:49 +0000
parents 78cb76d091af
children b072589a6e57
files lwlib/xlwmenu.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lwlib/xlwmenu.c	Fri Mar 01 20:11:19 1996 +0000
+++ b/lwlib/xlwmenu.c	Fri Mar 01 20:11:49 1996 +0000
@@ -892,8 +892,8 @@
      XPoint* relative_pos;
 {
   window_state* ws = &mw->menu.windows [level];
-  unsigned int x = level == 0 ? ws->x : ws->x + mw->menu.shadow_thickness;
-  unsigned int y = level == 0 ? ws->y : ws->y + mw->menu.shadow_thickness;
+  int x = level == 0 ? ws->x : ws->x + mw->menu.shadow_thickness;
+  int y = level == 0 ? ws->y : ws->y + mw->menu.shadow_thickness;
   relative_pos->x = ev->x_root - x;
   relative_pos->y = ev->y_root - y;
   return (x < ev->x_root && ev->x_root < x + ws->width