mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
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:
4
menu.c
4
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;
|
||||
|
||||
|
Reference in New Issue
Block a user