summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DOCS/man/options.rst4
-rw-r--r--video/out/w32_common.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index adf3f994be..76a4e5a33b 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -1737,6 +1737,10 @@ Window
``--ontop``
Makes the player window stay on top of other windows.
+ On Windows, if combined with fullscreen mode, this causes mpv to be
+ treated as exclusive fullscreen window that bypasses the Desktop Window
+ Manager.
+
``--border``, ``--no-border``
Play video with window border and decorations. Since this is on by
default, use ``--no-border`` to disable the standard window decorations.
diff --git a/video/out/w32_common.c b/video/out/w32_common.c
index 667d7b425a..37e0057162 100644
--- a/video/out/w32_common.c
+++ b/video/out/w32_common.c
@@ -951,7 +951,7 @@ static void update_screen_rect(struct vo_w32_state *w32)
static DWORD update_style(struct vo_w32_state *w32, DWORD style)
{
- const DWORD NO_FRAME = WS_POPUP;
+ const DWORD NO_FRAME = WS_OVERLAPPED;
const DWORD FRAME = WS_OVERLAPPEDWINDOW | WS_SIZEBOX;
style &= ~(NO_FRAME | FRAME);
style |= (w32->opts->border && !w32->current_fs) ? FRAME : NO_FRAME;