Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions macosfrontend/macosfrontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ void MacosFrontend::destroyInputContext(ICUUID uuid) {
// The only exception is when Instance is destroyed,
// InputContextManager deletes all InputContexts.
auto ic = findIC(uuid);
if (!ic) {
FCITX_ERROR() << "Cannot destroy unknown input context";
return;
}
// This check is necessary. Although system sends destroy event immediately
// after focus out for most scenarios, when using fn+E to call out emoji
// picker (com.apple.CharacterPaletteIM), the sequence is: user clicks emoji
Expand Down
Loading