[vlc-commits] qt: remove dubious and non functional call
Erwan Tulou
git at videolan.org
Mon Jun 11 23:12:16 CEST 2018
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Fri May 25 12:37:21 2018 +0200| [5ea9b98e29b518dadfc10e710eaa18f2c42468e9] | committer: Erwan Tulou
qt: remove dubious and non functional call
As no videoWidget is ever inserted into the stackWidgetsSizes QMap, a
default QSize is provided with width and height = -1. These uninitialized
values are then propagated and end up as a no op at some point.
Yet, on Wayland, this -1 default values can end up being transmitted to
the Wayland server, that treats them as invalid values (protocol error).
At least the Gnome server(mutter) does.
This fix simply removes the call.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5ea9b98e29b518dadfc10e710eaa18f2c42468e9
---
modules/gui/qt/main_interface.cpp | 2 --
1 file changed, 2 deletions(-)
diff --git a/modules/gui/qt/main_interface.cpp b/modules/gui/qt/main_interface.cpp
index 4b07c33bf9..d14ae32b74 100644
--- a/modules/gui/qt/main_interface.cpp
+++ b/modules/gui/qt/main_interface.cpp
@@ -678,8 +678,6 @@ inline void MainInterface::showTab( QWidget *widget, bool video_closing )
}
stackCentralW->setCurrentWidget( widget );
- if( b_autoresize )
- resizeStack( stackWidgetsSizes[widget].width(), stackWidgetsSizes[widget].height() );
#ifdef DEBUG_INTF
msg_Dbg( p_intf, "Stack state changed to %s, index %i",
More information about the vlc-commits
mailing list