fixed app
This commit is contained in:
parent
af6a1091c2
commit
108c6e67f6
1 changed files with 2 additions and 3 deletions
|
@ -187,12 +187,11 @@ struct Runner final
|
|||
|
||||
void captureMouse(bool capture) {
|
||||
if (m_focused) {
|
||||
os::Rect rect = os::getWindowScreenRect(m_engine->getWindowHandle());
|
||||
os::clipCursor(rect.left, rect.top, rect.width, rect.height);
|
||||
os::grabMouse(m_engine->getWindowHandle());
|
||||
os::showCursor(false);
|
||||
}
|
||||
else {
|
||||
os::unclipCursor();
|
||||
os::grabMouse(os::INVALID_WINDOW);
|
||||
os::showCursor(true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue