vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Thu Jul 5 17:39:10 2012 +0300| [ee26881bec3a8de030172e09a1242dbd1baabc70] | committer: Rémi Denis-Courmont
Qt: the video widget must be a proper window Otherwise, it might not have a window handle. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ee26881bec3a8de030172e09a1242dbd1baabc70 --- modules/gui/qt4/components/interface_widgets.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp index 94f3784..85ce532 100644 --- a/modules/gui/qt4/components/interface_widgets.cpp +++ b/modules/gui/qt4/components/interface_widgets.cpp @@ -120,12 +120,14 @@ WId VideoWidget::request( int *pi_x, int *pi_y, plt.setColor( QPalette::Window, Qt::black ); stable->setPalette( plt ); stable->setAutoFillBackground(true); + /* Force the widget to be native so that it gets a winId() */ + stable->setAttribute( Qt::WA_NativeWindow, true ); /* Indicates that the widget wants to draw directly onto the screen. Widgets with this attribute set do not participate in composition management */ /* This is currently disabled on X11 as it does not seem to improve * performance, but causes the video widget to be transparent... */ -#ifndef Q_WS_X11 +#if !defined (Q_WS_X11) && !defined (Q_WS_QPA) stable->setAttribute( Qt::WA_PaintOnScreen, true ); #endif _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
