1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 00:01:33 -08:00

(x_focus_changed): If we get a focusout and pointer

is invisible, make it visible.
This commit is contained in:
Jan Djärv 2009-09-04 05:33:49 +00:00
parent 0a5e331a0e
commit 4da146f2c2
2 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,8 @@
2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
* xterm.c (x_focus_changed): If we get a focusout and pointer
is invisible, make it visible.
* xterm.h: Remove condition for declaration of
x_*_window_to_frame.

View file

@ -3139,6 +3139,7 @@ XTtoggle_invisible_pointer (f, invisible)
else
XDefineCursor (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
f->output_data.x->current_cursor);
f->pointer_invisible = invisible;
UNBLOCK_INPUT;
}
@ -3372,6 +3373,8 @@ x_focus_changed (type, state, dpyinfo, frame, bufp)
if (FRAME_XIC (frame))
XUnsetICFocus (FRAME_XIC (frame));
#endif
if (frame->pointer_invisible)
XTtoggle_invisible_pointer (frame, 0);
}
}