Skip to content

Commit

Permalink
libobs: Fix deadlock on macOS input method change
Browse files Browse the repository at this point in the history
  • Loading branch information
izwb003 authored and gxalpha committed Jan 4, 2025
1 parent a0e4e37 commit 48dad45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libobs/obs-cocoa.m
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,8 @@ static void InputMethodChangedProc(CFNotificationCenterRef center __unused, void

CFRetain(platform->layout_data);
platform->layout = (UCKeyboardLayout *) CFDataGetBytePtr(platform->layout_data);

pthread_mutex_unlock(&hotkeys->mutex);
}

// MARK: macOS Hotkey API Implementation
Expand Down

0 comments on commit 48dad45

Please sign in to comment.