ref: a037d9d936d8e2e75a7d951d02784f6ea472e1cc
parent: ea023e111baf86c07fcb32ee0593ebf8906c9ed5
author: phil9 <[email protected]>
date: Mon Dec 26 03:44:39 EST 2022
only draw selection when panel is focused.
--- a/dirpanel.c
+++ b/dirpanel.c
@@ -56,7 +56,9 @@
r.min.y += index * (1 + font->height + 1);
r.max.x -= 2;
r.max.y = r.min.y + 1 + font->height + 1;
- b = index == p->cursor ? cols[Csel] : cols[Cbg];
+ b = cols[Cbg];
+ if(index == p->cursor && p->focused)
+ b = cols[Csel];
f = cols[Cfg];
if(p->model->sel[p->offset + index])
f = cols[Ctitle];