[Xfce4-commits] <xfwm4:xfce-4.6> Fix bug #6543, when maximized windows are undecorated, space from the decoration is left behind, patch provided by <denis at root.ua>
Olivier Fourdan
noreply at xfce.org
Fri Dec 3 12:48:03 CET 2010
Updating branch refs/heads/xfce-4.6
to dcaa3fbd6156fced9e829de202eb9aa2ca5abf0b (commit)
from d4630154c263a56a7320af6d128766206f7b625e (commit)
commit dcaa3fbd6156fced9e829de202eb9aa2ca5abf0b
Author: Olivier Fourdan <fourdan at xfce.org>
Date: Tue Nov 30 17:48:17 2010 +0100
Fix bug #6543, when maximized windows are undecorated, space from the
decoration is left behind, patch provided by <denis at root.ua>
src/client.c | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/src/client.c b/src/client.c
index 8986384..4839eea 100644
--- a/src/client.c
+++ b/src/client.c
@@ -3211,10 +3211,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;
}
More information about the Xfce4-commits
mailing list