[vlc-commits] vout: update window size when leaving fullscreen

Rémi Denis-Courmont git at videolan.org
Sat Jan 26 21:13:11 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jan 26 22:09:47 2019 +0200| [e396caf4ce479859fd3f2edd1e7eb90726c66255] | committer: Rémi Denis-Courmont

vout: update window size when leaving fullscreen

Typically, when leaving fullscreen mode, the window manager will
restore the window to its size before it entered fullscreen mode.
In simple scenarii, that works just great.

But if the user changed AR, crop or zoom settings while in fullscreen
mode, then the intended window size no longer matches. The window
manager has no ways to guess the intended size; VLC just needs to
request a window resize.

Fixes #19364.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e396caf4ce479859fd3f2edd1e7eb90726c66255
---

 src/video_output/video_output.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 346de94f0f..98babd45fd 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -651,6 +651,8 @@ void vout_ControlChangeWindowed(vout_thread_t *vout)
     window = vout->p->display_cfg.window;
     if (window != NULL)
         vout_window_UnsetFullScreen(window);
+    /* Attempt to reset the intended window size */
+    vout_ControlUpdateWindowSize(vout);
     vlc_mutex_unlock(&vout->p->window_lock);
 }
 



More information about the vlc-commits mailing list