mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-28 16:21:07 -08:00
Ensure cursor's foreground color is in sync with 'default' face
* src/w32term.c (x_set_cursor_gc): Don't reuse cursor GC if its foreground color is different from the background of the glyph string's face. (Bug#26851)
This commit is contained in:
parent
de53dfcea3
commit
e124e07fae
1 changed files with 4 additions and 0 deletions
|
|
@ -954,6 +954,10 @@ x_set_cursor_gc (struct glyph_string *s)
|
|||
if (s->font == FRAME_FONT (s->f)
|
||||
&& s->face->background == FRAME_BACKGROUND_PIXEL (s->f)
|
||||
&& s->face->foreground == FRAME_FOREGROUND_PIXEL (s->f)
|
||||
/* Sometimes we are not called for each change in the default
|
||||
face's background color (e.g., bug#26851), so the additional
|
||||
test in the next line gives us a chance to resync. */
|
||||
&& s->f->output_data.w32->cursor_gc->foreground == s->face->background
|
||||
&& !s->cmp)
|
||||
s->gc = s->f->output_data.w32->cursor_gc;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue