コード例 #1
0
		public static void UnmaximizeWindows (Wnck.Window window)
		{
			if (window.IsMaximized)
				window.Unmaximize ();
		}
コード例 #2
0
ファイル: Viewport.cs プロジェクト: jrudolph/do-plugins
        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);
        }