diff --git a/client.c b/client.c index 0e22a0b..b511092 100644 --- a/client.c +++ b/client.c @@ -202,7 +202,7 @@ void client_place_spot(client *c, int spot, int mon, int force) // _NET_WM_STATE_MAXIMIZE_VERT may apply to a window in spot2 if (c->maxv && spot == SPOT2) { - h = m->h - y; + h = m->h - (y - m->y); } else // _NET_WM_STATE_MAXIMIZE_HORZ may apply to a window in spot3 @@ -213,7 +213,7 @@ void client_place_spot(client *c, int spot, int mon, int force) else if (c->max && spot == SPOT1) { - h = m->h - y; + h = m->h - (y - m->y); w = m->w; }