From: Michael D. Lowis Date: Wed, 16 Nov 2016 22:55:33 +0000 (-0500) Subject: Only show cursor in the focused region X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=599710259f296210fe5d6944424f86263de3802f;p=projs%2Ftide.git Only show cursor in the focused region --- diff --git a/xedit b/xedit index f2aab65..46924c4 100755 Binary files a/xedit and b/xedit differ diff --git a/xedit.c b/xedit.c index bac9c00..b2c2a83 100644 --- a/xedit.c +++ b/xedit.c @@ -284,7 +284,7 @@ static void draw_region(enum RegionId id) { draw_glyphs(2, Regions[id].y + ((y+1) * fheight), row->cols, row->rlen, row->len); } /* Place cursor on screen */ - if (id == Focused || id == EDIT) + if (id == Focused) x11_draw_rect(CLR_BASE3, 2 + csrx * fwidth, Regions[id].y + (csry * fheight), 1, fheight); }