ecere/gui/Window: (#789) 2. Added a way to grab entire desktop including task bar
authorJerome St-Louis <jerome@ecere.com>
Fri, 15 Jul 2016 04:50:01 +0000 (00:50 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 28 Jul 2016 21:35:16 +0000 (17:35 -0400)
- Call desktop.Grab() with last parameter (decorations) true

ecere/src/gui/Window.ec

index 7000799..9542db4 100644 (file)
@@ -7271,6 +7271,9 @@ public:
             clip.bottom += decorations ? 0 : clientStart.y;
          }
 
+         if(decorations && this == guiApp.desktop)
+            clip = { 0, 0, guiApp.virtualScreen.w, guiApp.virtualScreen.h };
+
          if(display && display.flags.flipping)
          {
             rootWindow.Update(null);