diff --git a/src/mumble/GlobalShortcut_unix.cpp b/src/mumble/GlobalShortcut_unix.cpp index ac816277d14..c423c97a45f 100644 --- a/src/mumble/GlobalShortcut_unix.cpp +++ b/src/mumble/GlobalShortcut_unix.cpp @@ -91,8 +91,8 @@ GlobalShortcutX::GlobalShortcutX() { int evt, error; if (g.s.bEnableXInput2 && XQueryExtension(display, "XInputExtension", &iXIopcode, &evt, &error)) { - int major = 2; - int minor = 0; + int major = XI_2_Major; + int minor = XI_2_Minor; int rc = XIQueryVersion(display, &major, &minor); if (rc != BadRequest) { qWarning("GlobalShortcutX: Using XI2 %d.%d", major, minor); diff --git a/src/mumble/GlobalShortcut_unix.h b/src/mumble/GlobalShortcut_unix.h index 5f80f250fc6..7704fc3f02f 100644 --- a/src/mumble/GlobalShortcut_unix.h +++ b/src/mumble/GlobalShortcut_unix.h @@ -38,6 +38,7 @@ #include #include #ifndef NO_XINPUT2 +#include #include #endif #include