Test case: xts5/XI/DeviceBell (1/6)

Reported-by: Knut Petersen <[email protected]>
Signed-off-by: Peter Hutterer <[email protected]>
---
 Xi/devbell.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Xi/devbell.c b/Xi/devbell.c
index c75b94d..d4c9554 100644
--- a/Xi/devbell.c
+++ b/Xi/devbell.c
@@ -142,7 +142,9 @@ ProcXDeviceBell(ClientPtr client)
         newpercent = base + newpercent;
     else
         newpercent = base - newpercent + stuff->percent;
-    (*proc) (newpercent, dev, ctrl, class);
+
+    if (proc)
+        (*proc) (newpercent, dev, ctrl, class);
 
     return Success;
 }
-- 
1.8.1.2

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to