diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-04-09 08:14:39 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-04-19 22:18:05 +1000 |
commit | 8bf2f562678107c346e8664f18c10f315c2768f5 (patch) | |
tree | 6e7fe709e5e76eb38111b2557485333907063238 /dix/devices.c | |
parent | 012cb1956a69f6cf2a878c5331e792fb12c73e9d (diff) |
dix: fix dev/keybd variable mixup.
Reported-by: Eric Anhold <eric@anholt.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix/devices.c')
-rw-r--r-- | dix/devices.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dix/devices.c b/dix/devices.c index 27148d6de..ed6e6bdd4 100644 --- a/dix/devices.c +++ b/dix/devices.c @@ -1930,14 +1930,14 @@ ProcBell(ClientPtr client) else newpercent = base - newpercent + stuff->percent; - for (keybd = inputInfo.devices; keybd; keybd = keybd->next) { + for (dev = inputInfo.devices; dev; dev = dev->next) { if ((dev == keybd || (!dev->isMaster && dev->u.master == keybd)) && - keybd->kbdfeed && keybd->kbdfeed->BellProc) { + dev->kbdfeed && dev->kbdfeed->BellProc) { rc = XaceHook(XACE_DEVICE_ACCESS, client, dev, DixBellAccess); if (rc != Success) return rc; - XkbHandleBell(FALSE, FALSE, keybd, newpercent, + XkbHandleBell(FALSE, FALSE, dev, newpercent, &dev->kbdfeed->ctrl, 0, None, NULL, client); } } |