Beispiel #1
0
 public static void UnmaximizeWindows(Wnck.Window window)
 {
     if (window.IsMaximized)
     {
         window.Unmaximize();
     }
 }
Beispiel #2
0
        void SetTemporaryWindowGeometry(Wnck.Window window, Gdk.Rectangle area, Dictionary <Wnck.Window, WindowState> state)
        {
            Gdk.Rectangle oldGeo = window.EasyGeometry();

            oldGeo.X += parent.ViewportX;
            oldGeo.Y += parent.ViewportY;

            state [window] = new WindowState(oldGeo, window.State);

            if (window.IsMaximized)
            {
                window.Unmaximize();
            }

            window.SetWorkaroundGeometry(WindowGravity.Current, MoveResizeMask, area.X, area.Y, area.Width, area.Height);
        }
Beispiel #3
0
        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);
        }