multi-monitor maxv bug
This commit is contained in:
4
client.c
4
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user