In showTab() (inside showVideo()), the size is saved inside stackWidgetsSizes[], but since it changed into fullscreen earlier, that's the size that is used after the video stops.
For me (on windows) that was enough to fix it:
diff --git a/modules/gui/qt/main_interface.cpp b/modules/gui/qt/main_interface.cppindex 2da22fd..1806b89 100644--- a/modules/gui/qt/main_interface.cpp+++ b/modules/gui/qt/main_interface.cpp@@ -733,11 +733,11 @@ void MainInterface::getVideoSlot( WId *p_id, struct vout_window_t *p_wnd, *p_id = ret; if( ret ) /* The videoWidget is available */ {- setVideoFullScreen( fullscreen );- /* Consider the video active now */ showVideo();+ setVideoFullScreen( fullscreen );+ /* Ask videoWidget to resize correctly, if we are in normal mode */ if( !isFullScreen() && !isMaximized() && b_autoresize ) videoWidget->setSize( *pi_width, *pi_height );
Your patch did not work on X11. The problem is that setMinimalView wants to call resize(), which may occur before or after the window is done entering/exiting fullscreen.
I have a patch that fixes the problem for me, can you confirm it works on windows?