mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-01 08:17:38 +00:00
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.
This commit is contained in:
parent
2389158a31
commit
123e90f6d3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user