diff options
| author | Karl Heuer | 1995-07-18 00:25:14 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-07-18 00:25:14 +0000 |
| commit | f2f2356280baa1ee2a31deb6a95ccb2b3d39162c (patch) | |
| tree | 3b028d9e4057a92149517a795ebda2f634b4e1ee /src | |
| parent | f7f8635da500744dc907b9ba21f66a862d1876e0 (diff) | |
| download | emacs-f2f2356280baa1ee2a31deb6a95ccb2b3d39162c.tar.gz emacs-f2f2356280baa1ee2a31deb6a95ccb2b3d39162c.zip | |
(mouse_get_pos, mouse_check_moved, XMenuActivate):
Access mouse_moved in selected_frame.
Diffstat (limited to 'src')
| -rw-r--r-- | src/msdos.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/msdos.c b/src/msdos.c index 31c01ed6737..83c644f2a5d 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -1397,7 +1397,7 @@ mouse_get_pos (f, insist, bar_window, part, x, y, time) | |||
| 1397 | *bar_window = Qnil; | 1397 | *bar_window = Qnil; |
| 1398 | gettimeofday (&tv, NULL); | 1398 | gettimeofday (&tv, NULL); |
| 1399 | mouse_get_xy (&ix, &iy); | 1399 | mouse_get_xy (&ix, &iy); |
| 1400 | mouse_moved = 0; | 1400 | selected_frame->mouse_moved = 0; |
| 1401 | *x = make_number (ix); | 1401 | *x = make_number (ix); |
| 1402 | *y = make_number (iy); | 1402 | *y = make_number (iy); |
| 1403 | *time = tv.tv_usec; | 1403 | *time = tv.tv_usec; |
| @@ -1409,7 +1409,7 @@ mouse_check_moved () | |||
| 1409 | int x, y; | 1409 | int x, y; |
| 1410 | 1410 | ||
| 1411 | mouse_get_xy (&x, &y); | 1411 | mouse_get_xy (&x, &y); |
| 1412 | mouse_moved |= (x != mouse_last_x || y != mouse_last_y); | 1412 | selected_frame->mouse_moved |= (x != mouse_last_x || y != mouse_last_y); |
| 1413 | mouse_last_x = x; | 1413 | mouse_last_x = x; |
| 1414 | mouse_last_y = y; | 1414 | mouse_last_y = y; |
| 1415 | } | 1415 | } |
| @@ -1737,9 +1737,9 @@ XMenuActivate (Display *foo, XMenu *menu, int *pane, int *selidx, | |||
| 1737 | while (!leave) | 1737 | while (!leave) |
| 1738 | { | 1738 | { |
| 1739 | mouse_check_moved (); | 1739 | mouse_check_moved (); |
| 1740 | if (mouse_moved) | 1740 | if (selected_frame->mouse_moved) |
| 1741 | { | 1741 | { |
| 1742 | mouse_moved = 0; | 1742 | selected_frame->mouse_moved = 0; |
| 1743 | result = XM_IA_SELECT; | 1743 | result = XM_IA_SELECT; |
| 1744 | mouse_get_xy (&x, &y); | 1744 | mouse_get_xy (&x, &y); |
| 1745 | for (i = 0; i < statecount; i++) | 1745 | for (i = 0; i < statecount; i++) |