# HG changeset patch # User Richard M. Stallman # Date 825711109 0 # Node ID 3ce3907bd21597daa08cf5902391e0e82a77bcc7 # Parent 78cb76d091af4001a376037d33cba137049cd16c (motion_event_is_in_menu): Make x and y signed. diff -r 78cb76d091af -r 3ce3907bd215 lwlib/xlwmenu.c --- 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