client: Fix client_maximize for fullscreen state

This commit is contained in:
Martin Duquesnoy 2009-01-01 18:22:38 +01:00
parent aba1d341f8
commit edd7ec5363
2 changed files with 8 additions and 8 deletions

View File

@ -515,6 +515,9 @@ client_maximize(Client *c)
XRectangle geo;
client_raise(c);
c->screen = screen_get_with_geo(c->geo.x, c->geo.y);
geo.x = sgeo[c->screen].x;
@ -524,15 +527,12 @@ client_maximize(Client *c)
if(c->state_fullscreen)
{
geo.y -= TBARH + INFOBARH + BORDH;
geo.height += TBARH + INFOBARH + (BORDH * 2);
client_moveresize(c, geo, False);
XMoveResizeWindow(dpy, c->win, 0, BORDH + TBARH, c->geo.width + BORDH * 2, c->geo.height);
geo.y -= INFOBARH;
geo.height += INFOBARH;
}
else
client_moveresize(c, geo, False);
client_raise(c);
client_moveresize(c, geo, False);
return;
}

View File

@ -134,7 +134,7 @@ struct Client
uint frame;
uint resizecorner;
} colors;
/* Client Layout Information */
/* Client Information */
Bool max, tile, free, hide;
Bool hint, lmax, unmapped;
Bool state_dock, state_fullscreen;