diff options
Diffstat (limited to 'video/out/opengl/w32.c')
-rw-r--r-- | video/out/opengl/w32.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/opengl/w32.c b/video/out/opengl/w32.c index 6080c303ba..2525ccfc1f 100644 --- a/video/out/opengl/w32.c +++ b/video/out/opengl/w32.c @@ -24,6 +24,7 @@ #include <windows.h> #include <dwmapi.h> #include "video/out/w32_common.h" +#include "video/out/win32/exclusive_hack.h" #include "common.h" struct w32_context { @@ -325,6 +326,11 @@ static bool compositor_active(MPGLContext *ctx) if (FAILED(w32_ctx->pDwmGetCompositionTimingInfo(0, &info))) return false; + // Test if a program is running in exclusive fullscreen mode. If so, it's + // probably this one, so it's not getting redirected by the compositor. + if (mp_w32_is_in_exclusive_mode()) + return false; + return true; } |