From 52d618c8119f71a61cc3209ae30a37547220e04e Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 4 Nov 2012 21:35:32 +0100 Subject: [PATCH] Fix fullscreen windows Fullscreen windows only worked on a screen which had x and y coordinates 0. Otherwise, the window inside the frame window was completely misplaced. Signed-off-by: Uli Schlachter --- objects/client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/objects/client.c b/objects/client.c index d35385ab..9b10aab4 100644 --- a/objects/client.c +++ b/objects/client.c @@ -628,6 +628,9 @@ client_resize_do(client_t *c, area_t geometry, bool force_notice) real_geometry.width -= c->titlebar[CLIENT_TITLEBAR_RIGHT].size; real_geometry.height -= c->titlebar[CLIENT_TITLEBAR_TOP].size; real_geometry.height -= c->titlebar[CLIENT_TITLEBAR_BOTTOM].size; + } else { + real_geometry.x = 0; + real_geometry.y = 0; } xcb_configure_window(globalconf.connection, c->frame_window,