diff -u xfwm4-original/src/xfwm4-4.6.2/src/client.c xfwm4-maximus/src/xfwm4-4.6.2/src/client.c --- xfwm4-4.6.2/src/client.c 2010-05-21 20:02:40.000000000 +0300 +++ xfwm4-4.6.2/src/client.c 2010-08-24 17:36:06.134773530 +0300 @@ -3211,10 +3211,20 @@ { /* 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; }