Add wayland udev rules file.
authorKristian Høgsberg <krh@redhat.com>
Wed, 31 Dec 2008 21:24:16 +0000 (16:24 -0500)
committerKristian Høgsberg <krh@redhat.com>
Wed, 31 Dec 2008 21:24:16 +0000 (16:24 -0500)
70-wayland.rules [new file with mode: 0644]
Makefile.in

diff --git a/70-wayland.rules b/70-wayland.rules
new file mode 100644 (file)
index 0000000..6aa43e9
--- /dev/null
@@ -0,0 +1,8 @@
+ACTION!="add|change", GOTO="wayland_end"
+
+KERNEL=="event*", ENV{ID_CLASS}=="mouse", ENV{WAYLAND_SEAT}="1"
+KERNEL=="event*", ENV{ID_CLASS}=="kbd", ENV{WAYLAND_SEAT}="1"
+KERNEL=="card*", ENV{WAYLAND_SEAT}="1"
+
+LABEL="wayland_end"
+
index 09cd2b7..b3b4807 100644 (file)
@@ -53,6 +53,7 @@ install : $(libs)
        install $(libs) @libdir@
        install wayland-server.pc wayland.pc @libdir@/pkgconfig
        install wayland-client.h @includedir@
+       install 70-wayland.rules ${sysconfdir}/udev/rules.d
 
 clean :
        rm -f $(clients) $(compositors) *.o *.so