From 27ead1d5ebaa13870018c51b36264d7c334c6bff Mon Sep 17 00:00:00 2001 From: Fred Pierresteguy Date: Fri, 8 Apr 1994 15:57:24 +0000 Subject: [PATCH] (show_mouse_face): Change the mouse cursor accordingly. --- src/xterm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index 8d77ea4108d..45b52d8dea8 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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. -- 2.39.5