diff options
author | marha <marha@users.sourceforge.net> | 2010-04-16 09:32:42 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-04-16 09:32:42 +0000 |
commit | 0afd2d366de6470b72f0d305643be9afd8cc461d (patch) | |
tree | 9363104b0080ddd001256d1b3a0eceae078f13a0 /xorg-server/hw/xfree86/common/xf86Xinput.c | |
parent | 6412df1b3df28c6213b43821c4a98cc3857d9a3f (diff) | |
download | vcxsrv-0afd2d366de6470b72f0d305643be9afd8cc461d.tar.gz vcxsrv-0afd2d366de6470b72f0d305643be9afd8cc461d.tar.bz2 vcxsrv-0afd2d366de6470b72f0d305643be9afd8cc461d.zip |
git update 16/4/2010
Diffstat (limited to 'xorg-server/hw/xfree86/common/xf86Xinput.c')
-rw-r--r-- | xorg-server/hw/xfree86/common/xf86Xinput.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/xorg-server/hw/xfree86/common/xf86Xinput.c b/xorg-server/hw/xfree86/common/xf86Xinput.c index 822922717..7723ba683 100644 --- a/xorg-server/hw/xfree86/common/xf86Xinput.c +++ b/xorg-server/hw/xfree86/common/xf86Xinput.c @@ -625,25 +625,30 @@ MergeInputClasses(IDevPtr idev, InputAttributes *attrs) return Success; } +/* + * Iterate the list of classes and look for Option "Ignore". Return the + * value of the last matching class and holler when returning TRUE. + */ static Bool IgnoreInputClass(IDevPtr idev, InputAttributes *attrs) { XF86ConfInputClassPtr cl; - Bool ignore; + Bool ignore = FALSE; + const char *ignore_class; for (cl = xf86configptr->conf_inputclass_lst; cl; cl = cl->list.next) { if (!InputClassMatches(cl, attrs)) continue; if (xf86findOption(cl->option_lst, "Ignore")) { ignore = xf86CheckBoolOption(cl->option_lst, "Ignore", FALSE); - if (ignore) - xf86Msg(X_CONFIG, - "%s: Ignoring device from InputClass \"%s\"\n", - idev->identifier, cl->identifier); - return ignore; + ignore_class = cl->identifier; } } - return FALSE; + + if (ignore) + xf86Msg(X_CONFIG, "%s: Ignoring device from InputClass \"%s\"\n", + idev->identifier, ignore_class); + return ignore; } /** |