int layer;
int nLayers;
- void *window; /* display-specific data for gvrender plugin */
-
-#if 0
- Display *dpy;
- int scr;
- Window win;
- unsigned long event_mask;
- Pixmap pix;
- GC gc;
- Visual *visual;
- Colormap cmap;
- int depth;
- double oldx, oldy; /* old pointer position in pixels */
-
- int needs_refresh, fit_mode, click, active, has_grown;
-
- Atom wm_delete_window_atom;
-#endif
+ boolean fit_mode, needs_refresh, click, active, has_grown;
+
+ void *window; /* display-specific data for gvrender plugin */
};
/* gv_plugin_t is a descriptor for available plugins; gvplugin_t is for installed plugins */
gv_plugin_t *api[ APIS ]; /* array of current plugins per api */
#undef ELEM
- void *display; /* display-specific data for gvdisplay plugin */
+ void *display; /* display-specific data for gvdisplay plugin */
gvdisplay_engine_t *display_engine; /* current display engine */
gvtext_engine_t *text_engine; /* current text_layout engine */
#define ARRAY_SIZE(A) (sizeof(A)/sizeof(A[0]))
-#if 0
-
typedef int (*key_callback_t) (gvrender_job_t * job);
typedef struct key_binding {
}
return 0;
}
-
-#endif
for (api = 0; api < ARRAY_SIZE(apis); api++) {
if (strcmp(str, apis[api]) == 0)
- return api;
+ return (api_t)api;
}
return -1; /* invalid api */
}