[PATCH xorg-gtest] xserver: default to -1/-1 for extension/opcode

Peter Hutterer peter.hutterer at who-t.net
Sun Nov 25 21:38:10 PST 2012


No need to specify those when waiting for core or extension events that are
not GenericEvents.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 include/xorg/gtest/xorg-gtest-xserver.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/xorg/gtest/xorg-gtest-xserver.h b/include/xorg/gtest/xorg-gtest-xserver.h
index 11fc93d..95d3f36 100644
--- a/include/xorg/gtest/xorg-gtest-xserver.h
+++ b/include/xorg/gtest/xorg-gtest-xserver.h
@@ -250,7 +250,7 @@ class XServer : public xorg::testing::Process {
      *
      * @return Whether an event is available
      */
-    static bool WaitForEventOfType(::Display *display, int type, int extension, int evtype, time_t timeout = 1000);
+    static bool WaitForEventOfType(::Display *display, int type, int extension = -1, int evtype = -1, time_t timeout = 1000);
 
     /**
      * Install a default XIOErrorHandler. That error handler will throw an
-- 
1.7.11.7



More information about the xorg-devel mailing list