diff options
author | okan <okan> | 2015-11-11 14:22:01 +0000 |
---|---|---|
committer | okan <okan> | 2015-11-11 14:22:01 +0000 |
commit | 00bdd48b1d93b91946c7655ec8829060040aec22 (patch) | |
tree | 97a1ef802671b187c9566744ef04cacd9d3e65e1 /menu.c | |
parent | 09565bc42362bb3a9fd24c75441e89c723114364 (diff) | |
download | cwm-00bdd48b1d93b91946c7655ec8829060040aec22.tar.gz cwm-00bdd48b1d93b91946c7655ec8829060040aec22.tar.xz cwm-00bdd48b1d93b91946c7655ec8829060040aec22.zip |
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.
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/menu.c b/menu.c index 5e0dc98..cb4ee7d 100644 --- a/menu.c +++ b/menu.c @@ -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; |