[Xfce4-commits] <xfwm4:master> 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 11:36:01 CET 2010
Updating branch refs/heads/master
to 06299dbe2639c8be60229defd00bd9436cadcfb6 (commit)
from 24fdb36d9e4323244c61b9d8e1ebc8dd5809d000 (commit)
commit 06299dbe2639c8be60229defd00bd9436cadcfb6
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 c603d96..862f750 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;
}
More information about the Xfce4-commits
mailing list