diff --git a/src/ui/frames.c b/src/ui/frames.c index 4296862b9..746fdea65 100644 --- a/src/ui/frames.c +++ b/src/ui/frames.c @@ -1292,7 +1292,7 @@ get_visible_frame_border_region (MetaUIFrame *frame) MetaFrameFlags flags; MetaFrameType type; MetaFrameBorders borders; - MetaRectangle frame_rect = frame->meta_window->rect; + MetaRectangle buffer_rect = frame->meta_window->buffer_rect; flags = meta_frame_get_flags (frame->meta_window->frame); type = meta_window_get_frame_type (frame->meta_window); @@ -1301,19 +1301,19 @@ get_visible_frame_border_region (MetaUIFrame *frame) type, frame->text_height, flags, &borders); - /* Visible frame rect */ - area.x = borders.invisible.left; - area.y = borders.invisible.top; - area.width = frame_rect.width; - area.height = frame_rect.height; + /* Frame rect */ + area.x = 0; + area.y = 0; + area.width = buffer_rect.width; + area.height = buffer_rect.height; frame_border = cairo_region_create_rectangle (&area); /* Client rect */ - area.x += borders.visible.left; - area.y += borders.visible.top; - area.width -= borders.visible.left + borders.visible.right; - area.height -= borders.visible.top + borders.visible.bottom; + area.x += borders.total.left; + area.y += borders.total.top; + area.width -= borders.total.left + borders.total.right; + area.height -= borders.total.top + borders.total.bottom; /* Visible frame border */ cairo_region_subtract_rectangle (frame_border, &area);