keybindings: Do not depend on linux headers for above-tab key

Commit 2f229c3928 removed the code to compute the above-tab
keycode and replaced it with a simple constant from linux/input.h.
We obviously cannot depend on linux headers on non-linux systems,
so provide a fallback definition in that case (which is expected
to work assuming the system is using the Xorg xf86-input-keyboard
driver).

https://bugzilla.gnome.org/show_bug.cgi?id=737135
This commit is contained in:
Florian Müllner 2014-09-22 15:06:22 +02:00
parent 90bd02ff4d
commit 565b9d73d5

View File

@ -40,7 +40,11 @@
#include <meta/prefs.h> #include <meta/prefs.h>
#include "meta-accel-parse.h" #include "meta-accel-parse.h"
#ifdef __linux__
#include <linux/input.h> #include <linux/input.h>
#elif !defined KEY_GRAVE
#define KEY_GRAVE 0x29 /* assume the use of xf86-input-keyboard */
#endif
#include "backends/x11/meta-backend-x11.h" #include "backends/x11/meta-backend-x11.h"
#include "x11/window-x11.h" #include "x11/window-x11.h"