aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer <[email protected]>1995-07-18 00:25:14 +0000
committerKarl Heuer <[email protected]>1995-07-18 00:25:14 +0000
commitf2f2356280baa1ee2a31deb6a95ccb2b3d39162c (patch)
tree3b028d9e4057a92149517a795ebda2f634b4e1ee
parentf7f8635da500744dc907b9ba21f66a862d1876e0 (diff)
(mouse_get_pos, mouse_check_moved, XMenuActivate):
Access mouse_moved in selected_frame.
-rw-r--r--src/msdos.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/msdos.c b/src/msdos.c
index 31c01ed673..83c644f2a5 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -1397,7 +1397,7 @@ mouse_get_pos (f, insist, bar_window, part, x, y, time)
*bar_window = Qnil;
gettimeofday (&tv, NULL);
mouse_get_xy (&ix, &iy);
- mouse_moved = 0;
+ selected_frame->mouse_moved = 0;
*x = make_number (ix);
*y = make_number (iy);
*time = tv.tv_usec;
@@ -1409,7 +1409,7 @@ mouse_check_moved ()
int x, y;
mouse_get_xy (&x, &y);
- mouse_moved |= (x != mouse_last_x || y != mouse_last_y);
+ selected_frame->mouse_moved |= (x != mouse_last_x || y != mouse_last_y);
mouse_last_x = x;
mouse_last_y = y;
}
@@ -1737,9 +1737,9 @@ XMenuActivate (Display *foo, XMenu *menu, int *pane, int *selidx,
while (!leave)
{
mouse_check_moved ();
- if (mouse_moved)
+ if (selected_frame->mouse_moved)
{
- mouse_moved = 0;
+ selected_frame->mouse_moved = 0;
result = XM_IA_SELECT;
mouse_get_xy (&x, &y);
for (i = 0; i < statecount; i++)