From 6fe0c279309cc2b26fb0795a77fab6f70a1074ac Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Tue, 1 Mar 2011 22:15:56 +0100 Subject: [PATCH] Fix size restore on unfullscreening When a window is restored back to normal resize from fullscreen mode, its geometry got smaller by its titlebar's size. Fix this by adding the titlebar geometry to the client's geometry at the correct place. Thanks to anrxc for reporting this and helping me debug it. Signed-off-by: Uli Schlachter --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.c b/client.c index d6852f85..049e3d55 100644 --- a/client.c +++ b/client.c @@ -1038,7 +1038,7 @@ client_set_fullscreen(lua_State *L, int cidx, bool s) { /* The titlebar was banned, unban! */ titlebar_unban(c->titlebar); - geometry = c->geometries.fullscreen; + geometry = titlebar_geometry_add(c->titlebar, 0, c->geometries.fullscreen); c->fullscreen = false; client_set_border_width(L, cidx, c->border_width_fs); }