Use canactive to decide whether to draw active border (yes, I know, CuCN told me to do this days ago). Render gpull