selection colors vs dynamic cursor color patch compatibility issue ref. #167
This commit is contained in:
parent
50286bb861
commit
3c7bcf616d
1 changed files with 2 additions and 2 deletions
4
x.c
4
x.c
|
|
@ -2747,7 +2747,7 @@ xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og)
|
||||||
XRenderColor colbg;
|
XRenderColor colbg;
|
||||||
#endif // DYNAMIC_CURSOR_COLOR_PATCH
|
#endif // DYNAMIC_CURSOR_COLOR_PATCH
|
||||||
|
|
||||||
#if !DYNAMIC_CURSOR_COLOR_PATCH
|
#if !DYNAMIC_CURSOR_COLOR_PATCH || SELECTION_COLORS_PATCH
|
||||||
/* remove the old cursor */
|
/* remove the old cursor */
|
||||||
if (selected(ox, oy))
|
if (selected(ox, oy))
|
||||||
#if SELECTION_COLORS_PATCH
|
#if SELECTION_COLORS_PATCH
|
||||||
|
|
@ -2804,7 +2804,7 @@ xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og)
|
||||||
}
|
}
|
||||||
#endif // SELECTION_COLORS_PATCH
|
#endif // SELECTION_COLORS_PATCH
|
||||||
} else {
|
} else {
|
||||||
#if SELECTION_COLORS_PATCH
|
#if SELECTION_COLORS_PATCH && !DYNAMIC_CURSOR_COLOR_PATCH
|
||||||
g.fg = defaultbg;
|
g.fg = defaultbg;
|
||||||
g.bg = defaultcs;
|
g.bg = defaultcs;
|
||||||
drawcol = dc.col[defaultcs];
|
drawcol = dc.col[defaultcs];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue