diff options
| author | Eli Zaretskii | 2013-07-27 16:08:03 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-07-27 16:08:03 +0300 |
| commit | e95da6d36ca628fd7ae4d1bd1affa11ff489daa4 (patch) | |
| tree | 75156882754482f7206dd2265b2e55586ea4555e /src/w32term.c | |
| parent | 5ab78d3d6a7efcb49d2a9be5b4bdb8eaf78f7a14 (diff) | |
| download | emacs-e95da6d36ca628fd7ae4d1bd1affa11ff489daa4.tar.gz emacs-e95da6d36ca628fd7ae4d1bd1affa11ff489daa4.zip | |
Fix focus-out events on MS-Windows.
src/w32term.c (w32_read_socket) <WM_KILLFOCUS>: Call
w32_detect_focus_change instead of doing part of its job by hand.
This fixes the problem whereby FOCUS_OUT events were not sent to
the event queue.
Diffstat (limited to 'src/w32term.c')
| -rw-r--r-- | src/w32term.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/w32term.c b/src/w32term.c index 0b22fd178e4..a596a487f3d 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -4923,16 +4923,11 @@ w32_read_socket (struct terminal *terminal, | |||
| 4923 | break; | 4923 | break; |
| 4924 | 4924 | ||
| 4925 | case WM_KILLFOCUS: | 4925 | case WM_KILLFOCUS: |
| 4926 | w32_detect_focus_change (dpyinfo, &msg, &inev); | ||
| 4926 | f = x_top_window_to_frame (dpyinfo, msg.msg.hwnd); | 4927 | f = x_top_window_to_frame (dpyinfo, msg.msg.hwnd); |
| 4927 | 4928 | ||
| 4928 | if (f) | 4929 | if (f) |
| 4929 | { | 4930 | { |
| 4930 | if (f == dpyinfo->w32_focus_event_frame) | ||
| 4931 | dpyinfo->w32_focus_event_frame = 0; | ||
| 4932 | |||
| 4933 | if (f == dpyinfo->w32_focus_frame) | ||
| 4934 | x_new_focus_frame (dpyinfo, 0); | ||
| 4935 | |||
| 4936 | if (f == hlinfo->mouse_face_mouse_frame) | 4931 | if (f == hlinfo->mouse_face_mouse_frame) |
| 4937 | { | 4932 | { |
| 4938 | /* If we move outside the frame, then we're | 4933 | /* If we move outside the frame, then we're |