]> Dogcows Code - chaz/openbox/commitdiff
check for composite on the server
authorDana Jansens <danakj@orodu.net>
Tue, 19 Jun 2007 21:37:41 +0000 (21:37 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 19 Jun 2007 21:37:41 +0000 (21:37 +0000)
openbox/extensions.c

index b7d8e73aa9ea53f148e36e1c81f29890254067c2..4f3a397c27a9bb29a28a1c08902def93da7f34e9 100644 (file)
@@ -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)
This page took 0.023463 seconds and 4 git commands to generate.