From: Dana Jansens Date: Tue, 24 Apr 2007 07:26:37 +0000 (+0000) Subject: add debug messages saying if an extension is missing on the server X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=7854818a822893edeb9ed41397f1041cf466825a;p=chaz%2Fopenbox add debug messages saying if an extension is missing on the server --- diff --git a/openbox/extensions.c b/openbox/extensions.c index 5b64bc64..d57b8357 100644 --- a/openbox/extensions.c +++ b/openbox/extensions.c @@ -43,24 +43,32 @@ void extensions_query_all() extensions_xkb = XkbQueryExtension(ob_display, &junk, &extensions_xkb_event_basep, &junk, NULL, NULL); + if (!extensions_xkb) + ob_debug("XKB extension is not present on the server\n"); #endif #ifdef SHAPE extensions_shape = XShapeQueryExtension(ob_display, &extensions_shape_event_basep, &junk); + if (!extensions_shape) + ob_debug("X Shape extension is not present on the server\n"); #endif #ifdef XINERAMA extensions_xinerama = XineramaQueryExtension(ob_display, &extensions_xinerama_event_basep, &junk) && XineramaIsActive(ob_display); + if (!extensions_xinerama) + ob_debug("Xinerama extension is not present on the server\n"); #endif #ifdef XRANDR extensions_randr = XRRQueryExtension(ob_display, &extensions_randr_event_basep, &junk); + if (!extensions_randr) + ob_debug("XRandR extension is not present on the server\n"); #endif #ifdef SYNC @@ -70,7 +78,7 @@ void extensions_query_all() XSyncInitialize(ob_display, &junk, &junk); if (!extensions_sync) ob_debug("X Sync extension is not present on the server or is an " - "incompatible version"); + "incompatible version\n"); #endif }