From: tobtoht Date: Tue, 7 Mar 2023 22:09:16 +0000 (+0100) Subject: Linux: fix dead keys X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=317a4bd6ba3e9461b85ed71a7cc9969d65dec32f;p=gamesguru%2Ffeather.git Linux: fix dead keys --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 03e4fbcb..b73cea6e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -295,6 +295,10 @@ if(STATIC AND NOT Qt6_FOUND) endif() endif() +if(STATIC AND UNIX AND Qt6_FOUND) + target_link_libraries(feather Qt6::QComposePlatformInputContextPlugin) +endif() + if(DEPENDS AND APPLE) # TODO: Needed for ___isOSVersionAtLeast target_link_libraries(feather diff --git a/src/main.cpp b/src/main.cpp index b40ce828..1f5c9345 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -31,6 +31,7 @@ #if defined(Q_OS_LINUX) && defined(STATIC) Q_IMPORT_PLUGIN(QXcbIntegrationPlugin) +Q_IMPORT_PLUGIN(QComposePlatformInputContextPlugin) // Needed for dead keys on Linux #endif #if defined(Q_OS_LINUX) && defined(STACK_TRACE)