mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 03:25:02 +00:00
update:全屏后设置焦点,防止工具栏抢焦点
This commit is contained in:
parent
c2b0c269b3
commit
1c36bf1895
2 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue