mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-18 10:16:51 +00:00
* xterm.c (x_detect_focus_change): Do not change focus frame for
Enter/LeaveNotify if the current focus frame has explicit focus.
This commit is contained in:
parent
067b409428
commit
0b03cc78b8
@ -1,3 +1,8 @@
|
||||
2003-11-14 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
|
||||
|
||||
* xterm.c (x_detect_focus_change): Do not change focus frame for
|
||||
Enter/LeaveNotify if the current focus frame has explicit focus.
|
||||
|
||||
2003-11-14 Kim F. Storm <storm@cua.dk>
|
||||
|
||||
* dispnew.c (update_text_area): Fix redisplay error when hscroll
|
||||
|
26
src/xterm.c
26
src/xterm.c
@ -3209,16 +3209,22 @@ x_detect_focus_change (dpyinfo, event, bufp, numchars)
|
||||
{
|
||||
case EnterNotify:
|
||||
case LeaveNotify:
|
||||
if (event->xcrossing.detail != NotifyInferior
|
||||
&& event->xcrossing.focus
|
||||
&& ! (frame->output_data.x->focus_state & FOCUS_EXPLICIT))
|
||||
nr_events = x_focus_changed ((event->type == EnterNotify
|
||||
? FocusIn : FocusOut),
|
||||
FOCUS_IMPLICIT,
|
||||
dpyinfo,
|
||||
frame,
|
||||
bufp,
|
||||
numchars);
|
||||
{
|
||||
struct frame *focus_frame = dpyinfo->x_focus_event_frame;
|
||||
int focus_state
|
||||
= focus_frame ? focus_frame->output_data.x->focus_state : 0;
|
||||
|
||||
if (event->xcrossing.detail != NotifyInferior
|
||||
&& event->xcrossing.focus
|
||||
&& ! (focus_state & FOCUS_EXPLICIT))
|
||||
nr_events = x_focus_changed ((event->type == EnterNotify
|
||||
? FocusIn : FocusOut),
|
||||
FOCUS_IMPLICIT,
|
||||
dpyinfo,
|
||||
frame,
|
||||
bufp,
|
||||
numchars);
|
||||
}
|
||||
break;
|
||||
|
||||
case FocusIn:
|
||||
|
Loading…
Reference in New Issue
Block a user