fix(mac): invalidate event tap CFMachPort on disable
This commit is contained in:
parent
626e170eb6
commit
f765e829f2
1 changed files with 1 additions and 0 deletions
|
|
@ -768,6 +768,7 @@ void OSXScreen::disable()
|
|||
|
||||
if (m_eventTapPort) {
|
||||
CGEventTapEnable(m_eventTapPort, false);
|
||||
CFMachPortInvalidate(m_eventTapPort);
|
||||
CFRelease(m_eventTapPort);
|
||||
m_eventTapPort = nullptr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue