From 0af17ed98c8f8112c0d43ccbf90367f543846143 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Fri, 29 Jul 2011 19:51:22 -0700 Subject: Use a callback object instead of ad-hoc lists for sync and frame events So obvious in retrospect. The object system can do all the work for us and keep track of pending calls as regular objects and we don't need to abuse the resource system to get them cleaned up on client exit. We don't need the custom key management or (broken) lookup, we just sue object IDs. And last but not least, anybody can receive the callback, not just display listeners. --- protocol/wayland.xml | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) (limited to 'protocol') diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 92377c4..f1dd78e 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -42,16 +42,7 @@ The key argument can be used to correlate between multiple sync invocations. --> - - - - - - - + @@ -92,19 +83,14 @@ + - - - + + - @@ -423,6 +409,15 @@ + + + + + + -- cgit v1.2.3-70-g09d2