summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/qt/WebCoreSupport/FullScreenVideoWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/qt/WebCoreSupport/FullScreenVideoWidget.cpp')
-rw-r--r--Source/WebKit/qt/WebCoreSupport/FullScreenVideoWidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebKit/qt/WebCoreSupport/FullScreenVideoWidget.cpp b/Source/WebKit/qt/WebCoreSupport/FullScreenVideoWidget.cpp
index 4922cd7..bb5e2b9 100644
--- a/Source/WebKit/qt/WebCoreSupport/FullScreenVideoWidget.cpp
+++ b/Source/WebKit/qt/WebCoreSupport/FullScreenVideoWidget.cpp
@@ -66,6 +66,7 @@ void FullScreenVideoWidget::show(QMediaPlayer* player)
setMouseTracking(true);
raise();
m_mediaPlayer->setVideoOutput(this);
+ setFocus();
grabMouse();
hideCursor();
}
@@ -73,6 +74,7 @@ void FullScreenVideoWidget::show(QMediaPlayer* player)
void FullScreenVideoWidget::closeEvent(QCloseEvent* event)
{
m_mediaPlayer = 0;
+ m_cursorTimer.stop();
setMouseTracking(false);
releaseMouse();
QApplication::restoreOverrideCursor();