From 6d1130b40812268ccb93add146da47c6e9904051 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Tue, 17 Aug 2010 18:06:40 +0200 Subject: [PATCH] Ignore the titlebar geometry on fullscreen clients When a client is fullscreen, it should cover the full screen. There's no point in trying to do clever things if the titlebar is banned anyway. Signed-off-by: Uli Schlachter --- client.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/client.c b/client.c index e3a5a7551..09a7a4da7 100644 --- a/client.c +++ b/client.c @@ -882,7 +882,10 @@ client_resize(client_t *c, area_t geometry, bool hints) geometry.y = 0; /* Real client geometry, please keep it contained to C code at the very least. */ - geometry_internal = titlebar_geometry_remove(c->titlebar, c->border_width, geometry); + if (!c->fullscreen) + geometry_internal = titlebar_geometry_remove(c->titlebar, c->border_width, geometry); + else + geometry_internal = geometry; if(hints && !c->fullscreen) geometry_internal = client_geometry_hints(c, geometry_internal); @@ -891,7 +894,10 @@ client_resize(client_t *c, area_t geometry, bool hints) return false; /* Also let client hints propagate to the "official" geometry. */ - geometry = titlebar_geometry_add(c->titlebar, c->border_width, geometry_internal); + if (!c->fullscreen) + geometry = titlebar_geometry_add(c->titlebar, c->border_width, geometry_internal); + else + geometry = geometry_internal; if(c->geometries.internal.x != geometry_internal.x || c->geometries.internal.y != geometry_internal.y