summaryrefslogtreecommitdiff
path: root/privs.h
blob: 9f9cfdd0626dee927ca26138809eec7a8daf7a38 (plain)
1
2
3
4
5
6
7
8
#ifndef PRIVS_H
#define PRIVS_H

#include <stdbool.h>

extern void drop_privileges(bool enforce, uid_t uid, gid_t gid);

#endif /* PRIVS_H */
='ctrl'>
authorJamie Lentin <jm@lentin.co.uk>2015-08-11 22:40:52 +0100
committerJiri Kosina <jkosina@suse.cz>2015-08-12 14:32:31 +0200
commit3cb5ff0220e31bd1043bb18fd5765c9f86928491 (patch)
tree70369e3713cd7b5f2235e16c605566e6a083a91e
parentdbfebb44b7c650dd134a8be07f9afd5862150987 (diff)
HID: lenovo: Hide middle-button press until release
Don't relay a middle button press to userspace until release, and then only if there was no scroll events inbetween. This is closer to what Xorg's wheel emulation does, and avoids spurious middle-click pastes. Signed-off-by: Jamie Lentin <jm@lentin.co.uk> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat