]> git.sesse.net Git - vlc/commitdiff
Qt: do not resize if we were in fullscreen or maximized
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 12 Apr 2010 22:48:50 +0000 (00:48 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 12 Apr 2010 22:48:50 +0000 (00:48 +0200)
modules/gui/qt4/main_interface.hpp

index a5efc7ca046588c215559948d799b2686d19b975..e26bfa473352f0510bd46ea736eadd386f750201 100644 (file)
@@ -208,7 +208,8 @@ private slots:
     void showBuffering( float );
 
     void resizeStack( int w, int h ) {
-        resize( size() - stackCentralW->size() + QSize( w, h ) );
+        if( !isFullScreen() && !isMaximized() )
+            resize( size() - stackCentralW->size() + QSize( w, h ) );
         debug(); }