multi-monitor maxv bug

This commit is contained in:
Sean Pringle
2013-02-17 23:46:18 +10:00
parent 028289fde3
commit ed2fb6f96b

View File

@@ -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;
}