From 1fdc7e6c377d14569fdd4ac24352b351e36da803 Mon Sep 17 00:00:00 2001 From: Martin Herkt Date: Mon, 6 Jan 2014 14:12:08 +0100 Subject: w32_common: don't force topmost on fullscreen Fixes #457, #444. --- video/out/w32_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video') diff --git a/video/out/w32_common.c b/video/out/w32_common.c index e016905e8d..f72600bf1d 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -662,7 +662,7 @@ static int reinit_window_state(struct vo *vo) DWORD style = update_style(vo, GetWindowLong(w32->window, GWL_STYLE)); - if (vo->opts->fullscreen || vo->opts->ontop) + if (vo->opts->ontop) layer = HWND_TOPMOST; // xxx not sure if this can trigger any unwanted messages (WM_MOVE/WM_SIZE) @@ -683,6 +683,7 @@ static int reinit_window_state(struct vo *vo) vo->dheight = vo->opts->screenheight; w32->window_x = vo->xinerama_x; w32->window_y = vo->xinerama_y; + style &= ~WS_OVERLAPPEDWINDOW; } else { if (toggle_fs) { // Restore window position and size when switching from fullscreen. -- cgit v1.2.3