emacs-diffs
[Top][All Lists]
Advanced

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

master 123e90f6d3: Fix no-accept-focus handling for embedded frames


From: Po Lu
Subject: master 123e90f6d3: Fix no-accept-focus handling for embedded frames
Date: Fri, 25 Nov 2022 19:47:36 -0500 (EST)

branch: master
commit 123e90f6d349ca8882973db74007cb5d9067305c
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix no-accept-focus handling for embedded frames
    
    * src/xterm.c (handle_one_xevent): Don't focus embedded frames
    on click if they have `no-accept-focus' set.
---
 src/xterm.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/xterm.c b/src/xterm.c
index 7d855c92cc..ec605f5e91 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -21430,7 +21430,9 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                  if (!NILP (tab_bar_arg))
                    inev.ie.arg = tab_bar_arg;
                 }
-            if (FRAME_X_EMBEDDED_P (f))
+
+            if (FRAME_X_EMBEDDED_P (f)
+               && !FRAME_NO_ACCEPT_FOCUS (f))
               xembed_send_message (f, event->xbutton.time,
                                    XEMBED_REQUEST_FOCUS, 0, 0, 0);
           }
@@ -23198,7 +23200,9 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                        if (!NILP (tab_bar_arg))
                          inev.ie.arg = tab_bar_arg;
                      }
-                 if (FRAME_X_EMBEDDED_P (f))
+
+                 if (FRAME_X_EMBEDDED_P (f)
+                     && !FRAME_NO_ACCEPT_FOCUS (f))
                    xembed_send_message (f, xev->time,
                                         XEMBED_REQUEST_FOCUS, 0, 0, 0);
                }



reply via email to

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