aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2006-08-28 12:03:22 +0000
committerKim F. Storm2006-08-28 12:03:22 +0000
commit62d8e3d40e49e7da32c520b79b115878e910e89f (patch)
tree74cacac2c9920f6e91480c7fabd2ae23b7392ddf /src
parent62d108d4b9bc9008063f71c608b359c7bc1bf3fa (diff)
downloademacs-62d8e3d40e49e7da32c520b79b115878e910e89f.tar.gz
emacs-62d8e3d40e49e7da32c520b79b115878e910e89f.zip
(get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]:
Don't attempt to replace cursor on image glyphs.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 87fa20fc064..762b6937b78 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -21213,6 +21213,7 @@ get_window_cursor_type (w, glyph, width, active_cursor)
21213 /* Use normal cursor if not blinked off. */ 21213 /* Use normal cursor if not blinked off. */
21214 if (!w->cursor_off_p) 21214 if (!w->cursor_off_p)
21215 { 21215 {
21216#ifdef HAVE_WINDOW_SYSTEM
21216 if (glyph != NULL && glyph->type == IMAGE_GLYPH) 21217 if (glyph != NULL && glyph->type == IMAGE_GLYPH)
21217 { 21218 {
21218 if (cursor_type == FILLED_BOX_CURSOR) 21219 if (cursor_type == FILLED_BOX_CURSOR)
@@ -21238,6 +21239,7 @@ get_window_cursor_type (w, glyph, width, active_cursor)
21238 cursor_type = HOLLOW_BOX_CURSOR; 21239 cursor_type = HOLLOW_BOX_CURSOR;
21239 } 21240 }
21240 } 21241 }
21242#endif
21241 return cursor_type; 21243 return cursor_type;
21242 } 21244 }
21243 21245