changeset 104844:ce7818a96e63

(x_focus_changed): If we get a focusout and pointer is invisible, make it visible.
author Jan Djärv <jan.h.d@swipnet.se>
date Fri, 04 Sep 2009 05:33:13 +0000
parents 34f58690ff98
children 779db36d1441
files src/xterm.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Fri Sep 04 04:47:36 2009 +0000
+++ b/src/xterm.c	Fri Sep 04 05:33:13 2009 +0000
@@ -3139,6 +3139,7 @@
   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 @@
       if (FRAME_XIC (frame))
         XUnsetICFocus (FRAME_XIC (frame));
 #endif
+      if (frame->pointer_invisible)
+        XTtoggle_invisible_pointer (frame, 0);
     }
 }