Example #1
0
 IEnumerable <Wnck.Window> RawWindows()
 {
     foreach (Wnck.Window window in ScreenUtils.GetWindows())
     {
         if (WindowCenterInViewport(window) || window.IsSticky)
         {
             yield return(window);
         }
     }
 }
Example #2
0
 public void ShowDesktop()
 {
     if (!ScreenUtils.DesktopShown(parent.Screen))
     {
         ScreenUtils.ShowDesktop(parent.Screen);
     }
     else
     {
         ScreenUtils.UnshowDesktop(parent.Screen);
     }
 }
Example #3
0
        void ShowDesktop(bool storeState)
        {
            if (storeState)
            {
                window_states.Push(new Dictionary <Wnck.Window, WindowState> ());
            }

            if (!ScreenUtils.DesktopShown(parent.Screen))
            {
                ScreenUtils.ShowDesktop(parent.Screen);
            }
            else
            {
                ScreenUtils.UnshowDesktop(parent.Screen);
            }
        }