Browse Source

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".
田七不甜 2 years ago
parent
commit
c56017beb0
1 changed files with 12 additions and 3 deletions
  1. 12 3
      plugins/win-capture/window-capture.c

+ 12 - 3
plugins/win-capture/window-capture.c

@@ -122,9 +122,18 @@ static const char *wgc_partial_match_classes[] = {
 static const char *wgc_whole_match_classes[] = {
 static const char *wgc_whole_match_classes[] = {
 	"ApplicationFrameWindow",
 	"ApplicationFrameWindow",
 	"Windows.UI.Core.CoreWindow",
 	"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,
 	NULL,
 };
 };