Commit 4da146f2 authored by Jan Djärv's avatar Jan Djärv
Browse files

(x_focus_changed): If we get a focusout and pointer

is invisible, make it visible.
parent 0a5e331a
2009-09-04 Jan Djärv <jan.h.d@swipnet.se> 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 * xterm.h: Remove condition for declaration of
x_*_window_to_frame. x_*_window_to_frame.
   
......
...@@ -3139,6 +3139,7 @@ XTtoggle_invisible_pointer (f, invisible) ...@@ -3139,6 +3139,7 @@ XTtoggle_invisible_pointer (f, invisible)
else else
XDefineCursor (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), XDefineCursor (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
f->output_data.x->current_cursor); f->output_data.x->current_cursor);
f->pointer_invisible = invisible;
UNBLOCK_INPUT; UNBLOCK_INPUT;
} }
...@@ -3372,6 +3373,8 @@ x_focus_changed (type, state, dpyinfo, frame, bufp) ...@@ -3372,6 +3373,8 @@ x_focus_changed (type, state, dpyinfo, frame, bufp)
if (FRAME_XIC (frame)) if (FRAME_XIC (frame))
XUnsetICFocus (FRAME_XIC (frame)); XUnsetICFocus (FRAME_XIC (frame));
#endif #endif
if (frame->pointer_invisible)
XTtoggle_invisible_pointer (frame, 0);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment