mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 02:58:06 +02:00
Unrealize cursor only once, not per device.
This commit is contained in:
parent
207f710d16
commit
676188531b
1 changed files with 1 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue