From d9839450f2c7e9dedf90c0aa1c8530900e192615 Mon Sep 17 00:00:00 2001 From: ketmar Date: Mon, 5 Nov 2012 16:25:50 +0200 Subject: [PATCH] small fixes to tabbar updating --- src/x11evtvis.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/x11evtvis.c b/src/x11evtvis.c index 047450f..4ac5aa8 100644 --- a/src/x11evtvis.c +++ b/src/x11evtvis.c @@ -5,7 +5,7 @@ static void xevtcbexpose (XEvent *ev) { if (!e->count && curterm != NULL) { xw.state &= ~WIN_REDRAW; xcopy(curterm, 0, 0, curterm->col, curterm->row); - updateTabBar = -1; + if (!updateTabBar) updateTabBar = -1; } xclearunused(); } else if (curterm != NULL) { @@ -20,7 +20,7 @@ static void xevtcbexpose (XEvent *ev) { // if (e->y <= taby+xw.tabheight && e->y+e->height >= taby) { //fprintf(stderr, "tabbar!\n"); - updateTabBar = -1; + if (!updateTabBar) updateTabBar = -1; } //XCopyArea(xw.dpy, curterm->picbuf, xw.win, dc.gc, e->x, e->y, e->width, e->height, e->x, e->y+(opt_tabposition==1?xw.height:0))); //xcopy(curterm, 0, 0, curterm->col, curterm->row); @@ -33,7 +33,7 @@ static void xevtcbexpose (XEvent *ev) { xcopy(curterm, x0, y0, x1-x0+1, y1-y0+1); //xclearunused(); //FIXME: optimize this } else { - updateTabBar = -1; + if (!updateTabBar) updateTabBar = -1; } xdrawTabBar(); //XFlush(xw.dpy); @@ -72,7 +72,7 @@ static void xevtcbfocus (XEvent *ev) { tsendfocusevent(curterm, 0); } //draw(curterm, 1); - updateTabBar = -1; + if (!updateTabBar) updateTabBar = -1; xdrawTabBar(); xdrawcursor(curterm); //xcopy(curterm, 0, 0, curterm->col, curterm->row); -- 2.11.4.GIT