From edd7ec53636334859d403cd55a311e95bb72bda7 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Thu, 1 Jan 2009 18:22:38 +0100 Subject: [PATCH] client: Fix client_maximize for fullscreen state --- src/client.c | 14 +++++++------- src/structs.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/client.c b/src/client.c index c8fd95e..1090d2b 100644 --- a/src/client.c +++ b/src/client.c @@ -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; } diff --git a/src/structs.h b/src/structs.h index 4790e56..6a099c2 100644 --- a/src/structs.h +++ b/src/structs.h @@ -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;