From a210068c5222acbdb04db17cb8cef314735bf977 Mon Sep 17 00:00:00 2001 From: Tiago Vignatti Date: Tue, 26 Oct 2010 20:50:13 +0300 Subject: [PATCH] dix: advance parent window pointer when no node is found Signed-off-by: Tiago Vignatti Signed-off-by: Pauli Nieminen Reviewed-by: Peter Hutterer Signed-off-by: Peter Hutterer --- dix/window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dix/window.c b/dix/window.c index 1913030cf..edb146e97 100644 --- a/dix/window.c +++ b/dix/window.c @@ -3660,9 +3660,9 @@ WindowParentHasDeviceCursor(WindowPtr pWin, &pParentNode, &pParentPrev)) { /* if there is a node in the list, the win has a dev cursor */ - if (!pParentNode->cursor) /* inherited. loop needs to cont. */ - { - } else if (pParentNode->cursor == pCursor) /* inherit */ + if (!pParentNode->cursor) /* inherited. */ + pParent = pParent->parent; + else if (pParentNode->cursor == pCursor) /* inherit */ return TRUE; else /* different cursor */ return FALSE;