[PATCH 2/5] Update test suite for xcb >= 1.6

Julien Danjou julien at danjou.info
Mon May 24 10:01:33 PDT 2010


Signed-off-by: Julien Danjou <julien at danjou.info>
---
 configure.in             |    2 +-
 test/test-launcher-xcb.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in
index 21fe138..7ca0ca2 100644
--- a/configure.in
+++ b/configure.in
@@ -78,7 +78,7 @@ fi
 ## try definining HAVE_BACKTRACE
 AC_CHECK_HEADERS(execinfo.h, [AC_CHECK_FUNCS(backtrace)])
 
-PKG_CHECK_MODULES([xcb], [xcb],,
+PKG_CHECK_MODULES([xcb], [xcb >= 1.6],,
     [AC_MSG_ERROR([Cannot find xcb])])
 PKG_CHECK_MODULES([xcb_aux], [xcb-aux],,
     [AC_MSG_ERROR([Cannot find xcb-aux])])
diff --git a/test/test-launcher-xcb.c b/test/test-launcher-xcb.c
index ed06ead..a94c2d3 100644
--- a/test/test-launcher-xcb.c
+++ b/test/test-launcher-xcb.c
@@ -64,7 +64,7 @@ slowly_obtain_timestamp (SnDisplay *display)
     name = "Fake Window";
 
     xcb_change_property (xconnection, XCB_PROP_MODE_REPLACE,
-                         xwindow, WM_NAME, STRING, 8,
+                         xwindow, XCB_ATOM_WM_NAME, XCB_ATOM_STRING, 8,
                          strlen (name), name);
   }
 
-- 
1.7.1



More information about the xdg mailing list