sixel: prevent drawing on search bar (#140)
It's annoying to use the search bar when it's behind an image. So this fix prevents that from happening.
This commit is contained in:
parent
8aee31444a
commit
a414f4a707
1 changed files with 6 additions and 0 deletions
6
x.c
6
x.c
|
|
@ -3178,6 +3178,12 @@ xfinishdraw(void)
|
||||||
if (im->x >= term.col || im->y >= term.row || im->y < 0)
|
if (im->x >= term.col || im->y >= term.row || im->y < 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
#if KEYBOARDSELECT_PATCH && REFLOW_PATCH
|
||||||
|
/* do not draw the image on the search bar */
|
||||||
|
if (im->y == term.row-1 && IS_SET(MODE_KBDSELECT) && kbds_issearchmode())
|
||||||
|
continue;
|
||||||
|
#endif // KEYBOARDSELECT_PATCH
|
||||||
|
|
||||||
/* scale the image */
|
/* scale the image */
|
||||||
width = MAX(im->width * win.cw / im->cw, 1);
|
width = MAX(im->width * win.cw / im->cw, 1);
|
||||||
height = MAX(im->height * win.ch / im->ch, 1);
|
height = MAX(im->height * win.ch / im->ch, 1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue