summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fourdan <fourdan@xfce.org>2010-11-30 17:48:17 +0100
committerOlivier Fourdan <fourdan@xfce.org>2010-11-30 17:48:17 +0100
commit06299dbe2639c8be60229defd00bd9436cadcfb6 (patch)
tree23170db8ed3bb8858aa4d4d48b28d9b477ab04b0
parent24fdb36d9e4323244c61b9d8e1ebc8dd5809d000 (diff)
downloadxfwm4-06299dbe2639c8be60229defd00bd9436cadcfb6.tar.gz
Fix bug #6543, when maximized windows are undecorated, space from the
decoration is left behind, patch provided by <denis@root.ua>
-rw-r--r--src/client.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/client.c b/src/client.c
index c603d9655..862f750b0 100644
--- a/src/client.c
+++ b/src/client.c
@@ -3220,10 +3220,20 @@ clientNewMaxSize (Client * c, XWindowChanges *wc)
{
/* Adjust size to the largest size available, not covering struts */
clientMaxSpace (screen_info, &full_x, &full_y, &full_w, &full_h);
- wc->x = full_x + frameLeft (c);
- wc->y = full_y + frameTop (c);
- wc->width = full_w - frameLeft (c) - frameRight (c);
- wc->height = full_h - frameTop (c) - frameBottom (c);
+ if(FLAG_TEST(c->flags, XFWM_FLAG_HAS_BORDER))
+ {
+ wc->x = full_x + frameLeft (c);
+ wc->y = full_y + frameTop (c);
+ wc->width = full_w - frameLeft (c) - frameRight (c);
+ wc->height = full_h - frameTop (c) - frameBottom (c);
+ }
+ else
+ {
+ wc->x = full_x;
+ wc->y = full_y;
+ wc->width = full_w;
+ wc->height = full_h;
+ }
return;
}