From 2599d23ee0bc5532c9a1529e053ae322fd2598cd Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 29 Nov 2026 22:19:13 -0600 Subject: [PATCH] Save some room for window chrome in the usable display area Ref: #2103 --- app/streaming/session.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index ef6a490f..a0991b74 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -1384,8 +1384,8 @@ void Session::getWindowDimensions(int& x, int& y, // Use the usable display bounds if they are valid if (usableBounds.w != 0 && WMUtils::hasDisplayUsableBounds() && - m_StreamConfig.width <= usableBounds.w && - m_StreamConfig.height <= usableBounds.h) { + m_StreamConfig.width <= ((int)(usableBounds.w * 0.95f)) && + m_StreamConfig.height <= ((int)(usableBounds.h * 0.95f))) { // We fit pixel-perfect in the usable area, so don't scale at all width = m_StreamConfig.width; height = m_StreamConfig.height;