dix: advance parent window pointer when no node is found
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com> Signed-off-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
290af0418f
commit
a210068c52
|
@ -3660,9 +3660,9 @@ WindowParentHasDeviceCursor(WindowPtr pWin,
|
||||||
&pParentNode, &pParentPrev))
|
&pParentNode, &pParentPrev))
|
||||||
{
|
{
|
||||||
/* if there is a node in the list, the win has a dev cursor */
|
/* if there is a node in the list, the win has a dev cursor */
|
||||||
if (!pParentNode->cursor) /* inherited. loop needs to cont. */
|
if (!pParentNode->cursor) /* inherited. */
|
||||||
{
|
pParent = pParent->parent;
|
||||||
} else if (pParentNode->cursor == pCursor) /* inherit */
|
else if (pParentNode->cursor == pCursor) /* inherit */
|
||||||
return TRUE;
|
return TRUE;
|
||||||
else /* different cursor */
|
else /* different cursor */
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue