private void ControlAddedHandler (object sender, ControlEventArgs e)
{
if (mdi_container != null) {
- Console.WriteLine ("SENDING TO BACK");
mdi_container.SendToBack ();
}
}
return;
if (Environment.GetEnvironmentVariable ("MONO_MWF_SCALING") == "disable"){
- Console.WriteLine ("Not scaling");
return;
}
clientsize_set = new Size(x, y);
- if (!IsMdiChild) {
- if (XplatUI.CalculateWindowRect(ref ClientRect, cp.Style, cp.ExStyle, cp.menu, out WindowRect)) {
- SetBounds(bounds.X, bounds.Y, WindowRect.Width, WindowRect.Height, BoundsSpecified.Size);
- }
- } else {
- if (XplatUI.CalculateWindowRect(ref ClientRect, cp.Style, cp.ExStyle, cp.menu, out WindowRect)) {
- SetBounds(bounds.X, bounds.Y, WindowRect.Width, WindowRect.Height, BoundsSpecified.Size);
- }
+ if (XplatUI.CalculateWindowRect(ref ClientRect, cp.Style, cp.ExStyle, cp.menu, out WindowRect)) {
+ SetBounds(bounds.X, bounds.Y, WindowRect.Width, WindowRect.Height, BoundsSpecified.Size);
}
}