From: Dana Jansens Date: Tue, 19 Jun 2007 21:37:41 +0000 (+0000) Subject: check for composite on the server X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=f9e705ac3441864083c93a971c4550097d4cf09c;p=chaz%2Fopenbox check for composite on the server --- diff --git a/openbox/extensions.c b/openbox/extensions.c index b7d8e73a..4f3a397c 100644 --- a/openbox/extensions.c +++ b/openbox/extensions.c @@ -33,6 +33,8 @@ gboolean extensions_randr = FALSE; gint extensions_randr_event_basep; gboolean extensions_sync = FALSE; gint extensions_sync_event_basep; +gboolean extensions_comp = FALSE; +gint extensions_comp_event_basep; void extensions_query_all() { @@ -80,6 +82,14 @@ void extensions_query_all() ob_debug("X Sync extension is not present on the server or is an " "incompatible version\n"); #endif + +#ifdef USE_XCOMPOSITE + extensions_comp = + XRRQueryExtension(ob_display, &extensions_comp_event_basep, + &junk); + if (!extensions_comp) + ob_debug("X Composite extension is not present on the server\n"); +#endif } void extensions_xinerama_screens(Rect **xin_areas, guint *nxin)