diff options
| author | Joakim Verona | 2010-09-06 23:20:57 +0200 |
|---|---|---|
| committer | Joakim Verona | 2010-09-06 23:20:57 +0200 |
| commit | 8dfed77f7bdf7591d6daa705364db6ba0d872116 (patch) | |
| tree | 6926bc93b78c702a036b17d091907bcdc20a90f9 /src/xterm.c | |
| parent | 5f09724dbf7335f829e435ecf104071074e309e1 (diff) | |
| download | emacs-8dfed77f7bdf7591d6daa705364db6ba0d872116.tar.gz emacs-8dfed77f7bdf7591d6daa705364db6ba0d872116.zip | |
disabled cursor drawing on xwidgets
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c index 67cc250a1b2..357ffeedc87 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7095,7 +7095,7 @@ x_draw_hollow_cursor (struct window *w, struct glyph_row *row) | |||
| 7095 | cursor_glyph = get_phys_cursor_glyph (w); | 7095 | cursor_glyph = get_phys_cursor_glyph (w); |
| 7096 | if (cursor_glyph == NULL) | 7096 | if (cursor_glyph == NULL) |
| 7097 | return; | 7097 | return; |
| 7098 | 7098 | ||
| 7099 | /* Compute frame-relative coordinates for phys cursor. */ | 7099 | /* Compute frame-relative coordinates for phys cursor. */ |
| 7100 | get_phys_cursor_geometry (w, row, cursor_glyph, &x, &y, &h); | 7100 | get_phys_cursor_geometry (w, row, cursor_glyph, &x, &y, &h); |
| 7101 | wd = w->phys_cursor_width; | 7101 | wd = w->phys_cursor_width; |
| @@ -7136,7 +7136,11 @@ x_draw_bar_cursor (struct window *w, struct glyph_row *row, int width, enum text | |||
| 7136 | cursor_glyph = get_phys_cursor_glyph (w); | 7136 | cursor_glyph = get_phys_cursor_glyph (w); |
| 7137 | if (cursor_glyph == NULL) | 7137 | if (cursor_glyph == NULL) |
| 7138 | return; | 7138 | return; |
| 7139 | 7139 | if (cursor_glyph->type == XWIDGET_GLYPH){ | |
| 7140 | printf("tried avoiding xwidget cursor\n"); | ||
| 7141 | return; //experimental avoidance of cursor on xwidget | ||
| 7142 | } | ||
| 7143 | |||
| 7140 | /* If on an image, draw like a normal cursor. That's usually better | 7144 | /* If on an image, draw like a normal cursor. That's usually better |
| 7141 | visible than drawing a bar, esp. if the image is large so that | 7145 | visible than drawing a bar, esp. if the image is large so that |
| 7142 | the bar might not be in the window. */ | 7146 | the bar might not be in the window. */ |