mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-21 03:52:16 -08:00
(handle_one_xevent): When focus_follows_mouse is nil make
SELECT_WINDOW_EVENT only if we don't leave the selected frame.
This commit is contained in:
parent
74a9b36f85
commit
50fbcdcb06
1 changed files with 7 additions and 1 deletions
|
|
@ -6628,7 +6628,13 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
|
|||
will be selected only when it is active. */
|
||||
if (WINDOWP (window)
|
||||
&& !EQ (window, last_window)
|
||||
&& !EQ (window, selected_window))
|
||||
&& !EQ (window, selected_window)
|
||||
/* For click-to-focus window managers
|
||||
create event iff we don't leave the
|
||||
selected frame. */
|
||||
&& (focus_follows_mouse
|
||||
|| (EQ (XWINDOW (window)->frame,
|
||||
XWINDOW (selected_window)->frame))))
|
||||
{
|
||||
inev.ie.kind = SELECT_WINDOW_EVENT;
|
||||
inev.ie.frame_or_window = window;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue