From: Eli Zaretskii Date: Sat, 27 Jul 2013 13:08:03 +0000 (+0300) Subject: Fix focus-out events on MS-Windows. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1698^2~19 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e95da6d36ca628fd7ae4d1bd1affa11ff489daa4;p=emacs.git Fix focus-out events on MS-Windows. src/w32term.c (w32_read_socket) : 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. --- diff --git a/src/ChangeLog b/src/ChangeLog index 38fa72b0506..95fdd2da94e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2013-07-27 Eli Zaretskii + + * w32term.c (w32_read_socket) : 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. + 2013-07-26 Eli Zaretskii * process.c (Fprocess_list): Doc fix. 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, break; case WM_KILLFOCUS: + w32_detect_focus_change (dpyinfo, &msg, &inev); f = x_top_window_to_frame (dpyinfo, msg.msg.hwnd); if (f) { - if (f == dpyinfo->w32_focus_event_frame) - dpyinfo->w32_focus_event_frame = 0; - - if (f == dpyinfo->w32_focus_frame) - x_new_focus_frame (dpyinfo, 0); - if (f == hlinfo->mouse_face_mouse_frame) { /* If we move outside the frame, then we're