[PATCH] dix: advance parent window pointer when no node is found
Tiago Vignatti
tiago.vignatti at nokia.com
Wed Oct 20 15:15:22 PDT 2010
Signed-off-by: Tiago Vignatti <tiago.vignatti at nokia.com>
---
dix/window.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dix/window.c b/dix/window.c
index 4a47dd5..b9d5b1e 100644
--- a/dix/window.c
+++ b/dix/window.c
@@ -3658,8 +3658,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. */
+ if (!pParentNode->cursor) /* inherited. */
{
+ pParent = pParent->parent;
else if (pParentNode->cursor == pCursor) /* inherit */
return TRUE;
else /* different cursor */
--
1.7.0.4
More information about the xorg-devel
mailing list