diff options
author | Uli Schlachter <psychon@znc.in> | 2015-04-05 14:13:34 +0200 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2015-04-05 14:13:34 +0200 |
commit | 64fa1e695b528272cb38c4c2cbc0e296c8fca57d (patch) | |
tree | 9a12eaba735a38f8c760888849eeaa985e9a6a3a /src | |
parent | 2d0d25aae08f5ca5de691c016e995c21a977c664 (diff) |
Use unchecked QueryExtension requests
If this ever causes an error, the underlying event loop at least gets the chance
to print something useful.
Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'src')
-rwxr-xr-x | src/extensions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extensions.py b/src/extensions.py index 1738408..94d7d57 100755 --- a/src/extensions.py +++ b/src/extensions.py @@ -131,7 +131,7 @@ output.write("{\n"); output.write("\txcb_query_extension_cookie_t cookies[%d];\n" % len(modules)); output.write("\tint ret = 0;\n"); for idx in range(len(modules)): - output.write("\tcookies[%d] = xcb_query_extension(conn, strlen(\"%s\"), \"%s\");\n" % (idx, modules[idx].xname, modules[idx].xname)); + output.write("\tcookies[%d] = xcb_query_extension_unchecked(conn, strlen(\"%s\"), \"%s\");\n" % (idx, modules[idx].xname, modules[idx].xname)); for idx in range(len(modules)): output.write("\tret |= register_extension(ctx, conn, cookies[%d], &extension_%s_info);\n" % (idx, modules[idx].name)); output.write("\treturn ret;\n"); |