diff options
author | Olivier Fourdan <fourdan@xfce.org> | 2010-11-30 17:48:17 +0100 |
---|---|---|
committer | Olivier Fourdan <fourdan@xfce.org> | 2010-11-30 17:48:17 +0100 |
commit | 06299dbe2639c8be60229defd00bd9436cadcfb6 (patch) | |
tree | 23170db8ed3bb8858aa4d4d48b28d9b477ab04b0 | |
parent | 24fdb36d9e4323244c61b9d8e1ebc8dd5809d000 (diff) | |
download | xfwm4-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.c | 18 |
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; } |