Browse Source

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.
pull/70/head
Erwan Tulou 8 years ago
parent
commit
5ea9b98e29
  1. 2
      modules/gui/qt/main_interface.cpp

2
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",

Loading…
Cancel
Save