public static void UnmaximizeWindows (Wnck.Window window) { if (window.IsMaximized) window.Unmaximize (); }
void SetTemporaryWindowGeometry(Wnck.Window window, Gdk.Rectangle area) { Gdk.Rectangle oldGeo = window.EasyGeometry (); oldGeo.X += parent.ViewportX; oldGeo.Y += parent.ViewportY; if (!window_states.ContainsKey (window)) window_states [window] = new WindowState (oldGeo, window.State); if (window.IsMaximized) window.Unmaximize (); window.SetWorkaroundGeometry (WindowGravity.Current, MoveResizeMask, area.X, area.Y, area.Width, area.Height); }