1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-24 10:38:38 +00:00

(motion_event_is_in_menu): Make x and y signed.

This commit is contained in:
Richard M. Stallman 1996-03-01 20:11:49 +00:00
parent 6afcf317d2
commit 6a21225cd1

View File

@ -892,8 +892,8 @@ motion_event_is_in_menu (mw, ev, level, relative_pos)
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