summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-05-28 13:54:16 +0300
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2007-06-03 18:38:53 +0300
commit9a7aaeb3f6ff79af60fde91cd0575a54ba0b9587 (patch)
tree6f4e337cce0240e40262875070d8304d5bef45aa /hw
parent94361cbba7f866144691f6f5e9251a550e0e0cb8 (diff)
XFree86: Input: Assume core events per default
Assume that a device will be sending core events, unless explicitly specified otherwise.
Diffstat (limited to 'hw')
-rw-r--r--hw/xfree86/common/xf86Xinput.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c
index 5eede084d..7a472766d 100644
--- a/hw/xfree86/common/xf86Xinput.c
+++ b/hw/xfree86/common/xf86Xinput.c
@@ -119,10 +119,12 @@ _X_EXPORT void
xf86ProcessCommonOptions(LocalDevicePtr local,
pointer list)
{
- if (!xf86SetBoolOption(list, "AlwaysCore", 0) ||
- xf86SetBoolOption(list, "SendCoreEvents", 0) ||
- xf86SetBoolOption(list, "CorePointer", 0) ||
- xf86SetBoolOption(list, "CoreKeyboard", 0)) {
+ if (xf86SetBoolOption(list, "AlwaysCore", 0) ||
+ !xf86SetBoolOption(list, "SendCoreEvents", 1) ||
+ !xf86SetBoolOption(list, "CorePointer", 1) ||
+ !xf86SetBoolOption(list, "CoreKeyboard", 1)) {
+ xf86Msg(X_CONFIG, "%s: doesn't report core events\n", local->name);
+ } else {
local->flags |= XI86_ALWAYS_CORE;
xf86Msg(X_CONFIG, "%s: always reports core events\n", local->name);
}