Skip to content

Commit

Permalink
Revert "Extend input method check for gcin (xournalpp#3315)"
Browse files Browse the repository at this point in the history
This reverts commit e6bb8b7.
  • Loading branch information
Rio6 committed Oct 24, 2021
1 parent 45cabda commit b41ff6d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/control/XournalMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,9 @@ using XMPtr = XournalMainPrivate*;
/// Checks for input method compatibility and ensures it
void ensure_input_model_compatibility() {
const char* imModule = g_getenv("GTK_IM_MODULE");
if (imModule != nullptr) {
std::string imModuleString{imModule};
if (imModuleString == "xim" || imModuleString == "gcin") {
g_setenv("GTK_IM_MODULE", "ibus", true);
g_warning("Unsupported input method: %s, changed to: ibus", imModule);
}
if (imModule != nullptr && strcmp(imModule, "xim") == 0) {
g_setenv("GTK_IM_MODULE", "ibus", true);
g_warning("Unsupported input method: xim, changed to: ibus");
}
}

Expand Down

0 comments on commit b41ff6d

Please sign in to comment.