protected override void OnVisibleChanged(EventArgs e) {
base.OnVisibleChanged (e);
if (Visible) {
if (window_manager != null)
if (WindowState == FormWindowState.Normal)
window_manager.SetWindowState (WindowState, WindowState);
else
// We don't really have an old_state, and if we pass the same thing,
// it may not really change the state for us
window_manager.SetWindowState ((FormWindowState)(-1), WindowState);
}
}