]> git.sesse.net Git - vlc/commitdiff
Qt4: only the actual video "needs" to turn off compositing
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 13 Aug 2009 16:05:30 +0000 (19:05 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 13 Aug 2009 16:07:51 +0000 (19:07 +0300)
modules/gui/qt4/components/interface_widgets.cpp

index 4deb3b636630ba9473870440b73fc5fcdf6c90ed..5fd9f04c6f9f67a06e4e5d6d228c9362d87fe71e 100644 (file)
@@ -75,11 +75,6 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i )
     /* Set the policy to expand in both directions */
 //    setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
 
-    /* Indicates that the widget wants to draw directly onto the screen.
-       Widgets with this attribute set do not participate in composition
-       management */
-    setAttribute( Qt::WA_PaintOnScreen, true );
-
     layout = new QHBoxLayout( this );
     layout->setContentsMargins( 0, 0, 0, 0 );
     setLayout( layout );
@@ -136,6 +131,9 @@ WId VideoWidget::request( int *pi_x, int *pi_y,
     plt.setColor( QPalette::Window, Qt::black );
     stable->setPalette( plt );
     stable->setAutoFillBackground(true);
+    /* Indicates that the widget wants to draw directly onto the screen.
+       Widgets with this attribute set do not participate in composition
+       management */
     stable->setAttribute( Qt::WA_PaintOnScreen, true );
 
     innerLayout->addWidget( stable );