]> git.eshelyaron.com Git - emacs.git/commitdiff
(show_mouse_face): Change the mouse cursor accordingly.
authorFred Pierresteguy <F.Pierresteguy@frcl.bull.fr>
Fri, 8 Apr 1994 15:57:24 +0000 (15:57 +0000)
committerFred Pierresteguy <F.Pierresteguy@frcl.bull.fr>
Fri, 8 Apr 1994 15:57:24 +0000 (15:57 +0000)
src/xterm.c

index 8d77ea4108dd5679736545c9dc2012a0b1380948..45b52d8dea88abba85c99d7f5b27fe00b44efcfc 100644 (file)
@@ -2208,6 +2208,12 @@ show_mouse_face (hl)
   /* If we turned the cursor off, turn it back on.  */
   if (cursor_off)
     x_display_cursor (f, 1);
+
+  /* Change the mouse cursor according to the value of HL.  */
+  if (hl > 0)
+    XDefineCursor (XDISPLAY FRAME_X_WINDOW (f), f->display.x->cross_cursor);
+  else
+    XDefineCursor (XDISPLAY FRAME_X_WINDOW (f), f->display.x->text_cursor);
 }
 
 /* Clear out the mouse-highlighted active region.