int extensions_shape_event_basep;
gboolean extensions_xinerama = FALSE;
int extensions_xinerama_event_basep;
-gboolean extensions_xinerama_active = FALSE;
gboolean extensions_randr = FALSE;
int extensions_randr_event_basep;
gboolean extensions_vidmode = FALSE;
#ifdef XINERAMA
extensions_xinerama =
XineramaQueryExtension(ob_display, &extensions_xinerama_event_basep,
- &junk);
- extensions_xinerama_active = XineramaIsActive(ob_display);
+ &junk) && XineramaIsActive(ob_display);
#endif
#ifdef XRANDR
guint i;
gint l, r, t, b;
#ifdef XINERAMA
- if (extensions_xinerama_active) {
+ if (extensions_xinerama) {
guint i;
gint n;
XineramaScreenInfo *info = XineramaQueryScreens(ob_display, &n);
extern gboolean extensions_xinerama;
/*! Base for events for the Xinerama extension */
extern int extensions_xinerama_event_basep;
-/*! Is Xinerama enabled? */
-extern gboolean extensions_xinerama_active;
/*! Does the display have the RandR extension? */
extern gboolean extensions_randr;
void extensions_query_all();
-void extensions_xinerama_screens(Rect **xin_areas, guint *nxin);
-
+void extensions_xinerama_screens(Rect **areas, guint *nxin);
+
#endif