fix(mac): osk shows unexpectedly

Fixes #2346. The OSK would show unexpectedly when switching
applications because the last active window was inconsistently
cleared.
This commit is contained in:
Marc Durdin 2019-12-04 11:11:04 +01:00
parent d9e8e546dc
commit db5c4e6a26

View file

@ -233,6 +233,8 @@ id _lastServerWithOSKShowing = nil;
if (_kvk != nil && (_alwaysShowOSK || _lastServerWithOSKShowing == newServer)) {
[self showOSK];
}
_lastServerWithOSKShowing = nil;
}
CGEventRef eventTapFunction(CGEventTapProxy proxy, CGEventType type, CGEventRef event, void *refcon) {