emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r113569: Fix focus-out events on MS-Windows.


From: Eli Zaretskii
Subject: [Emacs-diffs] trunk r113569: Fix focus-out events on MS-Windows.
Date: Sat, 27 Jul 2013 13:08:32 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 113569
revision-id: address@hidden
parent: address@hidden
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sat 2013-07-27 16:08:03 +0300
message:
  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.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/w32term.c                  w32term.c-20091113204419-o5vbwnq5f7feedwu-950
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-07-26 18:48:05 +0000
+++ b/src/ChangeLog     2013-07-27 13:08:03 +0000
@@ -1,3 +1,10 @@
+2013-07-27  Eli Zaretskii  <address@hidden>
+
+       * 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.
+
 2013-07-26  Eli Zaretskii  <address@hidden>
 
        * process.c (Fprocess_list): Doc fix.

=== modified file 'src/w32term.c'
--- a/src/w32term.c     2013-07-26 09:59:59 +0000
+++ b/src/w32term.c     2013-07-27 13:08:03 +0000
@@ -4923,16 +4923,11 @@
          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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]