[vlc-devel] commit: Qt4: only the actual video "needs" to turn off compositing ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Aug 13 18:07:54 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Aug 13 19:05:30 2009 +0300| [fb6afbc8e2d1238c5efc6d07ba926fbfa986c982] | committer: Rémi Denis-Courmont 

Qt4: only the actual video "needs" to turn off compositing

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fb6afbc8e2d1238c5efc6d07ba926fbfa986c982
---

 modules/gui/qt4/components/interface_widgets.cpp |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index 4deb3b6..5fd9f04 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -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 );




More information about the vlc-devel mailing list