From c56017beb007269ce92aa93decf347abacb7d7ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E4=B8=83=E4=B8=8D=E7=94=9C?= <1633557643@qq.com> Date: Thu, 28 Sep 2023 08:08:13 +0800 Subject: [PATCH] win-capture: Add 9 window class auto switch to WGC mode Add "GAMINGSERVICESUI_HOSTING_WINDOW_CLASS", "screenClass", "PodiumParent", "OMain", "Framework::CFrame", "rctrl_renwnd32", "MSWinPub", "OfficeApp-Frame" and "SDL_app". --- plugins/win-capture/window-capture.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/plugins/win-capture/window-capture.c b/plugins/win-capture/window-capture.c index 8ad33db7bade0f..54e7f9bd85cdb3 100644 --- a/plugins/win-capture/window-capture.c +++ b/plugins/win-capture/window-capture.c @@ -122,9 +122,18 @@ static const char *wgc_partial_match_classes[] = { static const char *wgc_whole_match_classes[] = { "ApplicationFrameWindow", "Windows.UI.Core.CoreWindow", - "XLMAIN", /* excel*/ - "PPTFrameClass", /* powerpoint */ - "OpusApp", /* word */ + "GAMINGSERVICESUI_HOSTING_WINDOW_CLASS", + "XLMAIN", /* Microsoft Excel */ + "PPTFrameClass", /* Microsoft PowerPoint */ + "screenClass", /* Microsoft PowerPoint (Slide Show) */ + "PodiumParent", /* Microsoft PowerPoint (Presenter View) */ + "OpusApp", /* Microsoft Word */ + "OMain", /* Microsoft Access */ + "Framework::CFrame", /* Microsoft OneNote */ + "rctrl_renwnd32", /* Microsoft Outlook */ + "MSWinPub", /* Microsoft Publisher */ + "OfficeApp-Frame", /* Microsoft 365 Software */ + "SDL_app", NULL, };