steamcompmgr: Add NoScale window flag

This commit is contained in:
Joshua Ashton 2022-01-04 12:45:25 +00:00 committed by Joshie
parent a8e3a40a03
commit 583714cffa

View file

@ -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;