summaryrefslogtreecommitdiff
path: root/wayland.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-11-03 15:31:30 -0500
committerKristian Høgsberg <krh@redhat.com>2008-11-06 10:53:02 -0500
commit33a52bd07d28853dbdc19a1426be45f17e573c6b (patch)
tree30a455c6a02f44b00203a72cc724b2f44a75a9a8 /wayland.c
parent35370f80735d2a8926aadd081b2ca9a0367cc557 (diff)
Add README for the adventurous, allow evdev override from getenv().
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/wayland.c b/wayland.c
index 0c1c75a..765a443 100644
--- a/wayland.c
+++ b/wayland.c
@@ -484,7 +484,13 @@ static const char input_device_file[] =
static void
wl_display_create_input_devices(struct wl_display *display)
{
- display->pointer = wl_input_device_create(display, input_device_file, 1);
+ const char *path;
+
+ path = getenv("WAYLAND_POINTER");
+ if (path == NULL)
+ path = input_device_file;
+
+ display->pointer = wl_input_device_create(display, path, 1);
if (display->pointer != NULL)
wl_hash_insert(&display->objects, display->pointer);