diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-04-04 17:35:06 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-04-04 17:35:06 +0930 |
commit | 676188531b2bd7679ee1831b5c517df3e6d215c5 (patch) | |
tree | fdf0823c6f45b4687500e561d27f15da6e6476ee /dix/cursor.c | |
parent | 207f710d16337839c2427aa16fad70a49834153e (diff) |
Unrealize cursor only once, not per device.
Diffstat (limited to 'dix/cursor.c')
-rw-r--r-- | dix/cursor.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/dix/cursor.c b/dix/cursor.c index 5886422d5..709c71dd2 100644 --- a/dix/cursor.c +++ b/dix/cursor.c @@ -123,11 +123,7 @@ FreeCursor(pointer value, XID cid) for (nscr = 0; nscr < screenInfo.numScreens; nscr++) { pscr = screenInfo.screens[nscr]; - for(pDev = inputInfo.devices; pDev; pDev = pDev->next) - { - if (DevHasCursor(pDev)) - (void)( *pscr->UnrealizeCursor)(pDev, pscr, pCurs); - } + (void)( *pscr->UnrealizeCursor)(pDev, pscr, pCurs); } FreeCursorBits(pCurs->bits); xfree( pCurs); |