Save some room for window chrome in the usable display area

Ref: #2103
This commit is contained in:
Cameron Gutman committed 2026-11-29 22:19:34 -06:00
1 parent d9a416aec3
commit 2599d23ee0
1 file changed
+2 -2
+2 -2
View File
@@ -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;