diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-04-09 18:14:58 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-04-09 18:20:26 +0200 |
commit | 78d3afe21cdcd8ac284ad9bd08bc1948dd14496e (patch) | |
tree | a6d4790a1c43d72f8759fd9df86bb55135998942 /src/evdev.h | |
parent | bfeda130de340c090895d23ea0a5742521ff0078 (diff) |
evdev: Disable the udev monitor when another vt becomes activevt-switch-hotplug
We dont want to receive hotplug events while being inactive.
When getting back active we enumerate all devices and would end up
with two sources for one device that may be hotplugged in the mean time.
Diffstat (limited to 'src/evdev.h')
-rw-r--r-- | src/evdev.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/evdev.h b/src/evdev.h index af5f6d9..4e29814 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -33,3 +33,9 @@ evdev_input_create(struct weston_compositor *c, struct udev *udev, void evdev_input_destroy(struct weston_input_device *input_base); + +int +evdev_enable_udev_monitor(struct udev *udev, struct weston_input_device *input_base); + +void +evdev_disable_udev_monitor(struct weston_input_device *input_base); |