Commit ee26881b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt: the video widget must be a proper window

Otherwise, it might not have a window handle.
parent 65ebc768
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment