From 4f25eefbadc512e034d087d8e4f21e82a4b641b0 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sun, 6 Feb 2022 23:10:56 +0000 Subject: [PATCH] steamcompmgr: Resize Steam's xwayland mode to output mode --- src/steamcompmgr.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index f3b5ace..92cc7d4 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -4722,6 +4722,10 @@ steamcompmgr_main(int argc, char **argv) if ( steamMode && g_nXWaylandCount > 1 ) { g_nNestedHeight = ( g_nNestedWidth * g_nOutputHeight ) / g_nOutputWidth; + wlserver_lock(); + // Update only Steam, the root ctx, with the new output size for now + wlserver_set_xwayland_server_mode( 0, g_nOutputWidth, g_nOutputHeight, g_nOutputRefresh ); + wlserver_unlock(); } vulkan_remake_output_images();