| @@ -422,23 +422,21 @@ void tns_mark(tns_t *tns, int n, bool mark) |
| 422 | 422 | | unsigned long col; |
| 423 | 423 | | thumb_t *t = &tns->thumbs[n]; |
| 424 | 424 | | win_t *win = tns->win; |
| 425 | | − | int x = t->x, y = t->y, w = t->w, h = t->h; |
| 426 | 425 | | |
| 427 | | − | if (mark || n == *tns->sel) |
| 426 | + | if (mark) |
| 428 | 427 | | col = win->selcol; |
| 429 | 428 | | else if (win->fullscreen) |
| 430 | 429 | | col = win->fscol; |
| 431 | 430 | | else |
| 432 | 431 | | col = win->bgcol; |
| 433 | 432 | | |
| 434 | | − | win_draw_rect(win, win->buf.pm, x - 4, y - 4, 8, 2, true, 0, col); |
| 435 | | − | win_draw_rect(win, win->buf.pm, x - 4, y - 4, 2, 8, true, 0, col); |
| 436 | | − | win_draw_rect(win, win->buf.pm, x + w - 4, y - 4, 8, 2, true, 0, col); |
| 437 | | − | win_draw_rect(win, win->buf.pm, x + w + 2, y - 4, 2, 8, true, 0, col); |
| 438 | | − | win_draw_rect(win, win->buf.pm, x - 4, y + h + 2, 8, 2, true, 0, col); |
| 439 | | − | win_draw_rect(win, win->buf.pm, x - 4, y + h - 4, 2, 8, true, 0, col); |
| 440 | | − | win_draw_rect(win, win->buf.pm, x + w - 4, y + h + 2, 8, 2, true, 0, col); |
| 441 | | − | win_draw_rect(win, win->buf.pm, x + w + 2, y + h - 4, 2, 8, true, 0, col); |
| 433 | + | win_draw_rect(win, t->x - 4, t->y - 4, 4, 4, true, 1, col); |
| 434 | + | win_draw_rect(win, t->x + t->w, t->y - 4, 4, 4, true, 1, col); |
| 435 | + | win_draw_rect(win, t->x - 4, t->y + t->h, 4, 4, true, 1, col); |
| 436 | + | win_draw_rect(win, t->x + t->w, t->y + t->h, 4, 4, true, 1, col); |
| 437 | + | |
| 438 | + | if (!mark && n == *tns->sel) |
| 439 | + | tns_highlight(tns, n, true); |
| 442 | 440 | | } |
| 443 | 441 | | } |
| 444 | 442 | | |
| @@ -459,8 +457,7 @@ void tns_highlight(tns_t *tns, int n, bool hl) |
| 459 | 457 | | else |
| 460 | 458 | | col = win->bgcol; |
| 461 | 459 | | |
| 462 | | − | win_draw_rect(win, win->buf.pm, t->x - 3, t->y - 3, t->w + 6, t->h + 6, |
| 463 | | − | false, 2, col); |
| 460 | + | win_draw_rect(win, t->x - 3, t->y - 3, t->w + 6, t->h + 6, false, 2, col); |
| 464 | 461 | | |
| 465 | 462 | | if (!hl && tns->files[n].marked) |
| 466 | 463 | | tns_mark(tns, n, true); |