diff options
| author | Andrew Innes | 1999-02-05 17:49:04 +0000 |
|---|---|---|
| committer | Andrew Innes | 1999-02-05 17:49:04 +0000 |
| commit | fb9cc9cc6ed485ee141e6e1116920f111a267d80 (patch) | |
| tree | 81e0ef9f5a9cc0df2a150e66a003b0b5eca9130f /src | |
| parent | 41a3354e11e2a16599c192c3e26f12a8ffa1b9bc (diff) | |
| download | emacs-fb9cc9cc6ed485ee141e6e1116920f111a267d80.tar.gz emacs-fb9cc9cc6ed485ee141e6e1116920f111a267d80.zip | |
(construct_drag_n_drop): Call DraqQueryPoint before
recording drop position.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32term.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/w32term.c b/src/w32term.c index 8a53ac2f7f2..326dedbd3e0 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -1972,14 +1972,15 @@ construct_drag_n_drop (result, msg, f) | |||
| 1972 | result->timestamp = msg->msg.time; | 1972 | result->timestamp = msg->msg.time; |
| 1973 | result->modifiers = msg->dwModifiers; | 1973 | result->modifiers = msg->dwModifiers; |
| 1974 | 1974 | ||
| 1975 | hdrop = (HDROP) msg->msg.wParam; | ||
| 1976 | DragQueryPoint (hdrop, &p); | ||
| 1977 | |||
| 1975 | p.x = LOWORD (msg->msg.lParam); | 1978 | p.x = LOWORD (msg->msg.lParam); |
| 1976 | p.y = HIWORD (msg->msg.lParam); | 1979 | p.y = HIWORD (msg->msg.lParam); |
| 1977 | ScreenToClient (msg->msg.hwnd, &p); | 1980 | ScreenToClient (msg->msg.hwnd, &p); |
| 1978 | XSETINT (result->x, p.x); | 1981 | XSETINT (result->x, p.x); |
| 1979 | XSETINT (result->y, p.y); | 1982 | XSETINT (result->y, p.y); |
| 1980 | 1983 | ||
| 1981 | hdrop = (HDROP) msg->msg.wParam; | ||
| 1982 | DragQueryPoint (hdrop, &p); | ||
| 1983 | num_files = DragQueryFile (hdrop, 0xFFFFFFFF, NULL, 0); | 1984 | num_files = DragQueryFile (hdrop, 0xFFFFFFFF, NULL, 0); |
| 1984 | files = Qnil; | 1985 | files = Qnil; |
| 1985 | 1986 | ||