From b7bce430fa140212edd437fa19eea58addbf702a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Leporcq?= Date: Sun, 8 Dec 2013 21:38:11 +0100 Subject: [PATCH] Improve auto-maximize fn to maximize windows which size is equal to the available size --- src/placement.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/placement.c b/src/placement.c index 732f01d..1aba248 100644 --- a/src/placement.c +++ b/src/placement.c @@ -514,19 +514,19 @@ clientAutoMaximize (Client * c, int full_w, int full_h) } if (!FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED_HORIZ) && - (frameWidth (c) > full_w)) + (frameWidth (c) >= full_w)) { TRACE ("The application \"%s\" has requested a window width " - "(%u) larger than the actual width available in the workspace (%u), " + "(%u) equal or larger than the actual width available in the workspace (%u), " "the window will be maximized horizontally.", c->name, frameWidth (c), full_w); FLAG_SET (c->flags, CLIENT_FLAG_MAXIMIZED_HORIZ); } if (!FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED_VERT) && - (frameHeight (c) > full_h)) + (frameHeight (c) >= full_h)) { TRACE ("The application \"%s\" has requested a window height " - "(%u) larger than the actual height available in the workspace (%u), " + "(%u) equal or larger than the actual height available in the workspace (%u), " "the window will be maximized vertically.", c->name, frameHeight (c), full_h); FLAG_SET (c->flags, CLIENT_FLAG_MAXIMIZED_VERT); } -- 1.9.3