From 583714cffa08d2a3876d8da9213e2eb8de209948 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Tue, 4 Jan 2022 12:45:25 +0000 Subject: [PATCH] steamcompmgr: Add NoScale window flag --- src/steamcompmgr.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index 39c6fee..8db2947 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -1190,6 +1190,7 @@ namespace PaintWindowFlag static const uint32_t FadeTarget = 1u << 1; static const uint32_t NotificationMode = 1u << 2; static const uint32_t DrawBorders = 1u << 3; + static const uint32_t NoScale = 1u << 4; } using PaintWindowFlags = uint32_t; @@ -1252,6 +1253,11 @@ paint_window(Display *dpy, win *w, win *scaleW, struct Composite_t *pComposite, sourceWidth = mainOverlayWindow->a.width; sourceHeight = mainOverlayWindow->a.height; } + else if ( flags & PaintWindowFlag::NoScale ) + { + sourceWidth = currentOutputWidth; + sourceHeight = currentOutputHeight; + } else { sourceWidth = scaleW->a.width;