aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-07-13 23:44:20 +0000
committerGerd Moellmann2000-07-13 23:44:20 +0000
commit7e8895100b70c297c0c9d194415bb99aaf0de032 (patch)
tree5fe5fd43d7f59433b2638659a27a13be9ad95e25 /src
parent0b7f07ad9b3f36d57e7cfb448f858986b26bf4cf (diff)
downloademacs-7e8895100b70c297c0c9d194415bb99aaf0de032.tar.gz
emacs-7e8895100b70c297c0c9d194415bb99aaf0de032.zip
(construct_mouse_click, construct_mouse_wheel)
(construct_drag_n_drop, x_scroll_bar_handle_click) (w32_read_socket): Always set `arg' member of input_events.
Diffstat (limited to 'src')
-rw-r--r--src/w32term.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/w32term.c b/src/w32term.c
index dec34ebfa6e..4b94e2db27f 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -5518,6 +5518,7 @@ construct_mouse_click (result, msg, f)
5518 XSETINT (result->x, LOWORD (msg->msg.lParam)); 5518 XSETINT (result->x, LOWORD (msg->msg.lParam));
5519 XSETINT (result->y, HIWORD (msg->msg.lParam)); 5519 XSETINT (result->y, HIWORD (msg->msg.lParam));
5520 XSETFRAME (result->frame_or_window, f); 5520 XSETFRAME (result->frame_or_window, f);
5521 result->arg = Qnil;
5521 } 5522 }
5522} 5523}
5523 5524
@@ -5538,6 +5539,7 @@ construct_mouse_wheel (result, msg, f)
5538 XSETINT (result->x, p.x); 5539 XSETINT (result->x, p.x);
5539 XSETINT (result->y, p.y); 5540 XSETINT (result->y, p.y);
5540 XSETFRAME (result->frame_or_window, f); 5541 XSETFRAME (result->frame_or_window, f);
5542 result->arg = Qnil;
5541} 5543}
5542 5544
5543static void 5545static void
@@ -5588,6 +5590,7 @@ construct_drag_n_drop (result, msg, f)
5588 5590
5589 XSETFRAME (frame, f); 5591 XSETFRAME (frame, f);
5590 result->frame_or_window = Fcons (frame, files); 5592 result->frame_or_window = Fcons (frame, files);
5593 result->arg = Qnil;
5591} 5594}
5592 5595
5593 5596
@@ -7189,6 +7192,7 @@ x_scroll_bar_handle_click (bar, msg, emacs_event)
7189 /* not really meaningful to distinguish up/down */ 7192 /* not really meaningful to distinguish up/down */
7190 emacs_event->modifiers = msg->dwModifiers; 7193 emacs_event->modifiers = msg->dwModifiers;
7191 emacs_event->frame_or_window = bar->window; 7194 emacs_event->frame_or_window = bar->window;
7195 emacs_event->arg = Qnil;
7192 emacs_event->timestamp = msg->msg.time; 7196 emacs_event->timestamp = msg->msg.time;
7193 7197
7194 { 7198 {
@@ -7506,6 +7510,7 @@ w32_read_socket (sd, bufp, numchars, expected)
7506 { 7510 {
7507 bufp->kind = deiconify_event; 7511 bufp->kind = deiconify_event;
7508 XSETFRAME (bufp->frame_or_window, f); 7512 XSETFRAME (bufp->frame_or_window, f);
7513 bufp->arg = Qnil;
7509 bufp++; 7514 bufp++;
7510 count++; 7515 count++;
7511 numchars--; 7516 numchars--;
@@ -7543,6 +7548,7 @@ w32_read_socket (sd, bufp, numchars, expected)
7543 7548
7544 bufp->kind = language_change_event; 7549 bufp->kind = language_change_event;
7545 XSETFRAME (bufp->frame_or_window, f); 7550 XSETFRAME (bufp->frame_or_window, f);
7551 bufp->arg = Qnil;
7546 bufp->code = msg.msg.wParam; 7552 bufp->code = msg.msg.wParam;
7547 bufp->modifiers = msg.msg.lParam & 0xffff; 7553 bufp->modifiers = msg.msg.lParam & 0xffff;
7548 bufp++; 7554 bufp++;
@@ -7564,6 +7570,7 @@ w32_read_socket (sd, bufp, numchars, expected)
7564 bufp->code = msg.msg.wParam; 7570 bufp->code = msg.msg.wParam;
7565 bufp->modifiers = msg.dwModifiers; 7571 bufp->modifiers = msg.dwModifiers;
7566 XSETFRAME (bufp->frame_or_window, f); 7572 XSETFRAME (bufp->frame_or_window, f);
7573 bufp->arg = Qnil;
7567 bufp->timestamp = msg.msg.time; 7574 bufp->timestamp = msg.msg.time;
7568 bufp++; 7575 bufp++;
7569 numchars--; 7576 numchars--;
@@ -7584,6 +7591,7 @@ w32_read_socket (sd, bufp, numchars, expected)
7584 bufp->code = msg.msg.wParam; 7591 bufp->code = msg.msg.wParam;
7585 bufp->modifiers = msg.dwModifiers; 7592 bufp->modifiers = msg.dwModifiers;
7586 XSETFRAME (bufp->frame_or_window, f); 7593 XSETFRAME (bufp->frame_or_window, f);
7594 bufp->arg = Qnil;
7587 bufp->timestamp = msg.msg.time; 7595 bufp->timestamp = msg.msg.time;
7588 bufp++; 7596 bufp++;
7589 numchars--; 7597 numchars--;
@@ -7830,6 +7838,7 @@ w32_read_socket (sd, bufp, numchars, expected)
7830 7838
7831 bufp->kind = iconify_event; 7839 bufp->kind = iconify_event;
7832 XSETFRAME (bufp->frame_or_window, f); 7840 XSETFRAME (bufp->frame_or_window, f);
7841 bufp->arg = Qnil;
7833 bufp++; 7842 bufp++;
7834 count++; 7843 count++;
7835 numchars--; 7844 numchars--;
@@ -7859,6 +7868,7 @@ w32_read_socket (sd, bufp, numchars, expected)
7859 7868
7860 bufp->kind = deiconify_event; 7869 bufp->kind = deiconify_event;
7861 XSETFRAME (bufp->frame_or_window, f); 7870 XSETFRAME (bufp->frame_or_window, f);
7871 bufp->arg = Qnil;
7862 bufp++; 7872 bufp++;
7863 count++; 7873 count++;
7864 numchars--; 7874 numchars--;
@@ -7975,6 +7985,7 @@ w32_read_socket (sd, bufp, numchars, expected)
7975 7985
7976 bufp->kind = delete_window_event; 7986 bufp->kind = delete_window_event;
7977 XSETFRAME (bufp->frame_or_window, f); 7987 XSETFRAME (bufp->frame_or_window, f);
7988 bufp->arg = Qnil;
7978 bufp++; 7989 bufp++;
7979 count++; 7990 count++;
7980 numchars--; 7991 numchars--;
@@ -7991,6 +8002,7 @@ w32_read_socket (sd, bufp, numchars, expected)
7991 8002
7992 bufp->kind = menu_bar_activate_event; 8003 bufp->kind = menu_bar_activate_event;
7993 XSETFRAME (bufp->frame_or_window, f); 8004 XSETFRAME (bufp->frame_or_window, f);
8005 bufp->arg = Qnil;
7994 bufp++; 8006 bufp++;
7995 count++; 8007 count++;
7996 numchars--; 8008 numchars--;