fix: Enter screen on mac os asap to ensure event hand off
based on https://github.com/input-leap/input-leap/pull/2116
This commit is contained in:
parent
74dcd9bd4e
commit
3875e41154
1 changed files with 1 additions and 3 deletions
|
|
@ -803,6 +803,7 @@ void OSXScreen::disable()
|
||||||
|
|
||||||
void OSXScreen::enter()
|
void OSXScreen::enter()
|
||||||
{
|
{
|
||||||
|
m_isOnScreen = true;
|
||||||
showCursor();
|
showCursor();
|
||||||
|
|
||||||
if (m_isPrimary) {
|
if (m_isPrimary) {
|
||||||
|
|
@ -822,9 +823,6 @@ void OSXScreen::enter()
|
||||||
|
|
||||||
avoidSupression();
|
avoidSupression();
|
||||||
}
|
}
|
||||||
|
|
||||||
// now on screen
|
|
||||||
m_isOnScreen = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OSXScreen::canLeave()
|
bool OSXScreen::canLeave()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue