update:全屏后设置焦点,防止工具栏抢焦点

This commit is contained in:
rankun 2019-02-04 18:05:40 +08:00
parent c2b0c269b3
commit 1c36bf1895
2 changed files with 3 additions and 2 deletions

View file

@ -413,9 +413,9 @@ bool InputConvertGame::processMouseMove(const QMouseEvent *from)
m_mouseMoveLastConverPos.setY(m_mouseMoveLastConverPos.y() + distance.y() / m_showSize.height());
if (m_mouseMoveLastConverPos.x() < 0.1
|| m_mouseMoveLastConverPos.x() > 0.9
|| m_mouseMoveLastConverPos.x() > 0.8
|| m_mouseMoveLastConverPos.y() < 0.1
|| m_mouseMoveLastConverPos.y() > 0.9) {
|| m_mouseMoveLastConverPos.y() > 0.8) {
mouseMoveStopTouch();
mouseMoveStartTouch(from);
}

View file

@ -267,6 +267,7 @@ void VideoForm::switchFullScreen()
::SetThreadExecutionState(ES_CONTINUOUS);
#endif
} else {
setFocus(Qt::ActiveWindowFocusReason);
// mac fullscreen must show title bar
#ifdef Q_OS_OSX
setWindowFlags(windowFlags() & ~Qt::FramelessWindowHint);