Subject: Re: bug#17609: 24.4.50; trunk r117096: disappearing cursor in X

From: Dmitry Antipov <[email-masked]>
Date: Tue, 03 Jun 2014 16:40:22 +0400

On 06/02/2014 03:47 PM, Jan Tatarik wrote:

> There's still an issue. Pop-up notifications (notifications.el)
> triggered by emacs make the cursor disappear. The cursor remains hidden
> until emacs gets focus again.

I'm not familiar with this code and don't know how the notifications popup
window is created. Anyway, please try this tiny patch.

Dmitry

=== modified file 'src/menu.c'
--- src/menu.c	2014-06-02 18:01:21 +0000
+++ src/menu.c	2014-06-03 12:29:28 +0000
@@ -1558,6 +1558,12 @@
      string contents, because Fredisplay may GC and relocate them.  */
   Fredisplay (Qt);
 
+#ifdef HAVE_X_WINDOWS
+  /* Don't confuse user with invisible cursor.  */
+  if (FRAME_X_P (f) && f->pointer_invisible)
+    FRAME_DISPLAY_INFO (f)->toggle_visible_pointer (f, 0);
+#endif
+
 #if defined USE_X_TOOLKIT || defined USE_GTK
   if (FRAME_WINDOW_P (f))
     return xw_popup_dialog (f, header, contents);