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
6 changes: 3 additions & 3 deletions src/coreservices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
#include "util/sandbox.h"
#endif

#ifdef Q_OS_LINUX
#if defined(Q_OS_LINUX) && defined(__X11__)
#include <X11/XKBlib.h>
#endif

Expand Down Expand Up @@ -118,7 +118,7 @@ Bool __xErrorHandler(Display* display, XErrorEvent* event, xError* error) {

#endif

#if defined(Q_OS_LINUX)
#if defined(Q_OS_LINUX) && defined(__X11__)
QLocale localeFromXkbSymbol(const QString& xkbLayout) {
// This maps XKB layouts to locales of keyboard mappings that are shipped with Mixxx
static const QMap<QString, QLocale> xkbToLocaleMap = {
Expand Down Expand Up @@ -268,7 +268,7 @@ QString getCurrentXkbLayoutName() {
// to "ibus engine". QGuiApplication::inputMethod() does not work with GNOME and XFCE
// https://bugreports.qt.io/browse/QTBUG-137302
inline QLocale inputLocale() {
#if defined(Q_OS_LINUX)
#if defined(Q_OS_LINUX) && defined(__X11__)
QString layoutName = getCurrentXkbLayoutName();
if (!layoutName.isEmpty()) {
qDebug() << "Keyboard Layout from XKB:" << layoutName;
Expand Down