mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
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:
parent
90bd02ff4d
commit
565b9d73d5
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user