#endif /* X11 */
draw_text();
#ifdef X11
-#ifdef XDBE
+#ifdef HAVE_XDBE
if (use_xdbe) {
XdbeSwapInfo swap;
swap.swap_window = window.window;
#ifdef X11
static void clear_text(int exposures)
{
-#ifdef XDBE
+#ifdef HAVE_XDBE
if (use_xdbe) {
return; /* The swap action is XdbeBackground, which clears */
} else
clear_text(1);
-#ifdef XDBE
+#ifdef HAVE_XDBE
if (use_xdbe) {
XRectangle r;
r.x = text_start_x - border_margin;
*/
if (!XEmptyRegion(region)) {
-#ifdef XDBE
+#ifdef HAVE_XDBE
if (use_xdbe) {
XRectangle r;
r.x = text_start_x - border_margin;
info.cpu_usage = NULL;
}
#ifdef X11
-#ifdef XDBE
+#ifdef HAVE_XDBE
if (use_xdbe) {
XdbeDeallocateBackBufferName(display, window.back_buffer);
}
-#ifdef XDBE
+#ifdef HAVE_XDBE
CONF("double_buffer") {
use_xdbe = string_to_bool(value);
}
#ifdef OWN_WINDOW
"o"
#endif
-#ifdef XDBE
+#ifdef HAVE_XDBE
"b"
#endif
#endif /* X11 */
#ifdef OWN_WINDOW
" -o create own window to draw\n"
#endif
-#ifdef XDBE
+#ifdef HAVE_XDBE
" -b double buffer (prevents flickering)\n"
#endif
" -w WIN_ID window id to draw\n"
own_window = 1;
break;
#endif
-#ifdef XDBE
+#ifdef HAVE_XDBE
case 'b':
use_xdbe = 1;
break;
#endif
#ifdef HAVE_XDBE
-#define XDBE
#include <X11/extensions/Xdbe.h>
#endif
Window root,window,desktop;
Drawable drawable;
GC gc;
-#ifdef XDBE
+#ifdef HAVE_XDBE
XdbeBackBuffer back_buffer;
#endif
#ifdef XFT
#endif
};
-#ifdef XDBE
+#ifdef HAVE_XDBE
extern int use_xdbe;
#endif
#include <stdio.h>
-#ifdef XDBE
+#ifdef HAVE_XDBE
int use_xdbe;
#endif
/* Drawable is same as window. This may be changed by double buffering. */
window.drawable = window.window;
-#ifdef XDBE
+#ifdef HAVE_XDBE
if (use_xdbe) {
int major, minor;
if (!XdbeQueryExtension(display, &major, &minor)) {