Account for invisible borders when constraining modal dialogs

https://bugzilla.gnome.org/show_bug.cgi?id=656619
This commit is contained in:
Jasper St. Pierre 2011-08-16 01:05:49 -04:00
parent e4da6495d3
commit 05fee9beea

View File

@ -762,7 +762,7 @@ constrain_modal_dialog (MetaWindow *window,
y += parent->frame->rect.y; y += parent->frame->rect.y;
meta_frame_calc_borders (parent->frame, &borders); meta_frame_calc_borders (parent->frame, &borders);
y += borders.visible.top; y += borders.total.top;
y += info->borders->visible.top; y += info->borders->visible.top;
} }