private void ConfigureWindow ()
{
Gdk.Screen screen = Screen;
int monitor = screen.GetMonitorAtWindow (parent.GdkWindow);
Gdk.Rectangle bounds = screen.GetMonitorGeometry (monitor);
Move (bounds.X, bounds.Y);
Resize (bounds.Width, bounds.Height);
if (controls != null) {
int width, height;
controls.GetSize(out width, out height);
if (width > bounds.Width) {
controls.Resize(bounds.Width, height);
}
}
}