diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-04-24 07:26:37 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-04-24 07:26:37 +0000 |
| commit | 7854818a822893edeb9ed41397f1041cf466825a (patch) | |
| tree | f1fee505fde55f85b333123ab5037951936b5bb7 | |
| parent | fefbf38726d60995462de8a94f3c361877b5c56c (diff) | |
add debug messages saying if an extension is missing on the server
| -rw-r--r-- | openbox/extensions.c | 10 |
1 files changed, 9 insertions, 1 deletions
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 } |
