From fee5351a006a79125e73086b96a045fc644d1b7a Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 21 Jun 2008 11:38:04 +0300 Subject: [PATCH] Qt4: add XFlush - this does still not work right --- modules/gui/qt4/components/interface_widgets.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp index f6bb13349a..d8de95265f 100644 --- a/modules/gui/qt4/components/interface_widgets.cpp +++ b/modules/gui/qt4/components/interface_widgets.cpp @@ -48,6 +48,10 @@ #include #include #include +#ifdef Q_WS_X11 +# include +# include +#endif /********************************************************************** * Video Widget. A simple frame on which video is drawn @@ -85,6 +89,10 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i ) void VideoWidget::paintEvent(QPaintEvent *ev) { QFrame::paintEvent(ev); +#ifdef Q_WS_X11 + XFlush( QX11Info::display() ); +#endif + QMutexLocker locker( &handleLock ); handleReady = true; handleWait.wakeAll(); } -- 2.39.5