diff --git a/src/x11/window-x11.c b/src/x11/window-x11.c index ec3656ec0..f37be2620 100644 --- a/src/x11/window-x11.c +++ b/src/x11/window-x11.c @@ -1078,9 +1078,10 @@ meta_window_x11_move_resize_internal (MetaWindow *window, /* Compute new frame size */ new_w = window->rect.width + borders.invisible.left + borders.invisible.right; - new_h = borders.invisible.top + borders.invisible.bottom; - if (!window->shaded) - new_h += window->rect.height; + if (window->shaded) + new_h = borders.total.top + borders.total.bottom; + else + new_h = window->rect.height + borders.invisible.top + borders.invisible.bottom; if (new_w != window->frame->rect.width || new_h != window->frame->rect.height)