[PATCH] render: don't bother with animated cursors on floating slaves (#39989)

Peter Hutterer peter.hutterer at who-t.net
Wed Feb 15 20:33:29 PST 2012


X.Org Bug 39989 <http://bugs.freedesktop.org/show_bug.cgi?id=39989>

This is the corrected version after the initial fix in
bbb6b8c834e0e1491ca14403b5d0840dd14380d3.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 render/animcur.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/render/animcur.c b/render/animcur.c
index 31cbab9..11f30ad 100644
--- a/render/animcur.c
+++ b/render/animcur.c
@@ -208,6 +208,9 @@ AnimCurDisplayCursor (DeviceIntPtr pDev,
     AnimCurScreenPtr    as = GetAnimCurScreen(pScreen);
     Bool		ret;
 
+    if (!IsMaster(pDev) && IsFloating(pDev))
+	    return FALSE;
+
     Unwrap (as, pScreen, DisplayCursor);
     if (IsAnimCur(pCursor))
     {
-- 
1.7.7.5



More information about the xorg-devel mailing list