# HG changeset patch # User Richard M. Stallman # Date 874730909 0 # Node ID 38172783650be57a48e84c89d30ac192ae09669b # Parent d6e501bdc16a0cc9e3cb49ca31c62c0a51a78f18 (motion_event_is_in_menu): Extend the left and top windows by the shadow width. diff -r d6e501bdc16a -r 38172783650b lwlib/xlwmenu.c --- a/lwlib/xlwmenu.c Sat Sep 20 00:32:30 1997 +0000 +++ b/lwlib/xlwmenu.c Sat Sep 20 04:48:29 1997 +0000 @@ -921,12 +921,13 @@ XPoint* relative_pos; { window_state* ws = &mw->menu.windows [level]; - int x = level == 0 ? ws->x : ws->x + mw->menu.shadow_thickness; - int y = level == 0 ? ws->y : ws->y + mw->menu.shadow_thickness; + int shadow = level == 0 ? 0 : mw->menu.shadow_thickness; + int x = ws->x + shadow; + int y = ws->y + shadow; 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 - && y < ev->y_root && ev->y_root < y + ws->height); + return (x - shadow < ev->x_root && ev->x_root < x + ws->width + && y - shadow < ev->y_root && ev->y_root < y + ws->height); } static Boolean