Partial revert of replacing screen_area() with region_find(); until a

fix for a regression is found; this bug has been around for a long time
it seems, but this change exposed it. Likely need to track clients in to
and out of regions.
This commit is contained in:
okan
2015-11-11 14:22:01 +00:00
parent 09565bc423
commit 00bdd48b1d
6 changed files with 87 additions and 62 deletions

4
menu.c
View File

@ -331,7 +331,6 @@ static void
menu_draw(struct menu_ctx *mc, struct menu_q *menuq, struct menu_q *resultq)
{
struct screen_ctx *sc = mc->sc;
struct region_ctx *rc;
struct menu *mi;
struct geom area;
int n, xsave, ysave;
@ -372,8 +371,7 @@ menu_draw(struct menu_ctx *mc, struct menu_q *menuq, struct menu_q *resultq)
mc->num++;
}
rc = region_find(sc, mc->geom.x, mc->geom.y);
area = rc->work;
area = screen_area(sc, mc->geom.x, mc->geom.y, CWM_GAP);
area.w += area.x - Conf.bwidth * 2;
area.h += area.y - Conf.bwidth * 2;