diff --git a/CMake/options.cmake b/CMake/options.cmake index e9e7a1db0..ccb253522 100644 --- a/CMake/options.cmake +++ b/CMake/options.cmake @@ -595,18 +595,6 @@ else(OPTION_USE_XRENDER) set (FLTK_XRENDER_FOUND FALSE) endif (OPTION_USE_XRENDER) -####################################################################### -if (X11_FOUND) - option (OPTION_USE_XDBE "use lib Xdbe" ON) -endif (X11_FOUND) - -if (OPTION_USE_XDBE AND HAVE_XDBE_H) - set (HAVE_XDBE 1) - set (FLTK_XDBE_FOUND TRUE) -else() - set (FLTK_XDBE_FOUND FALSE) -endif (OPTION_USE_XDBE AND HAVE_XDBE_H) - ####################################################################### set (FL_NO_PRINT_SUPPORT FALSE) if (X11_FOUND AND NOT OPTION_PRINT_SUPPORT) diff --git a/CMake/resources.cmake b/CMake/resources.cmake index 7ea839d1f..23d84a787 100644 --- a/CMake/resources.cmake +++ b/CMake/resources.cmake @@ -62,7 +62,6 @@ fl_find_header (HAVE_SYS_SELECT_H sys/select.h) fl_find_header (HAVE_SYS_STDTYPES_H sys/stdtypes.h) fl_find_header (HAVE_X11_XREGION_H "X11/Xlib.h;X11/Xregion.h") -fl_find_header (HAVE_XDBE_H "X11/Xlib.h;X11/extensions/Xdbe.h") if (WIN32 AND NOT CYGWIN) # we don't use pthreads on Windows (except for Cygwin, see options.cmake) @@ -154,7 +153,7 @@ mark_as_advanced (HAVE_OPENGL_GLU_H HAVE_PNG_H) mark_as_advanced (HAVE_PTHREAD_H HAVE_PTHREAD_MUTEX_RECURSIVE) mark_as_advanced (HAVE_STDIO_H HAVE_STRINGS_H HAVE_SYS_DIR_H) mark_as_advanced (HAVE_SYS_NDIR_H HAVE_SYS_SELECT_H) -mark_as_advanced (HAVE_SYS_STDTYPES_H HAVE_XDBE_H) +mark_as_advanced (HAVE_SYS_STDTYPES_H) mark_as_advanced (HAVE_X11_XREGION_H) #---------------------------------------------------------------------- diff --git a/FL/Fl_Double_Window.H b/FL/Fl_Double_Window.H index 7ba197f8b..b3396c431 100644 --- a/FL/Fl_Double_Window.H +++ b/FL/Fl_Double_Window.H @@ -24,16 +24,8 @@ /** The Fl_Double_Window provides a double-buffered window. - If possible this will use the X double buffering extension (Xdbe). If - not, it will draw the window data into an off-screen pixmap, and then + It will draw the window data into an off-screen pixmap, and then copy it to the on-screen window. -
It is highly recommended that you put the following code before the - first show() of any window in your program:
- \code - Fl::visual(FL_DOUBLE|FL_INDEX) - \endcode - This makes sure you can use Xdbe on servers where double buffering - does not exist for every visual. */ class FL_EXPORT Fl_Double_Window : public Fl_Window { diff --git a/README.CMake.txt b/README.CMake.txt index 40dfc5b74..9eeda3e16 100644 --- a/README.CMake.txt +++ b/README.CMake.txt @@ -153,7 +153,6 @@ OPTION_USE_SVG - default ON OPTION_USE_XINERAMA - default ON OPTION_USE_XFT - default ON -OPTION_USE_XDBE - default ON OPTION_USE_XCURSOR - default ON OPTION_USE_XRENDER - default ON These are X11 extended libraries. These libs are used if found on the diff --git a/configh.cmake.in b/configh.cmake.in index 61bcfdb64..db536f98c 100644 --- a/configh.cmake.in +++ b/configh.cmake.in @@ -109,22 +109,6 @@ #cmakedefine01 USE_PANGO -/* - * HAVE_XDBE: - * - * Do we have the X double-buffer extension? - */ - -#cmakedefine01 HAVE_XDBE - -/* - * USE_XDBE: - * - * Actually try to use the double-buffer extension? - */ - -#define USE_XDBE HAVE_XDBE - /* * HAVE_XFIXES: * diff --git a/configh.in b/configh.in index 8dc34486b..a7d6bfa13 100644 --- a/configh.in +++ b/configh.in @@ -108,22 +108,6 @@ #define USE_PANGO 0 -/* - * HAVE_XDBE: - * - * Do we have the X double-buffer extension? - */ - -#define HAVE_XDBE 0 - -/* - * USE_XDBE: - * - * Actually try to use the double-buffer extension? - */ - -#define USE_XDBE HAVE_XDBE - /* * HAVE_XFIXES: * diff --git a/configure.ac b/configure.ac index 68ca0a5ab..2b32918e4 100644 --- a/configure.ac +++ b/configure.ac @@ -127,8 +127,6 @@ AC_ARG_ENABLE([x11], AS_HELP_STRING([--enable-x11], [use X11 with Cygwin or macO AC_ARG_ENABLE([xcursor], AS_HELP_STRING([--disable-xcursor], [turn off Xcursor support])) -AC_ARG_ENABLE([xdbe], AS_HELP_STRING([--disable-xdbe], [turn off Xdbe support])) - AC_ARG_ENABLE([xfixes], AS_HELP_STRING([--disable-xfixes], [turn off Xfixes support])) AC_ARG_ENABLE([xft], AS_HELP_STRING([--disable-xft], [turn off Xft support])) @@ -1154,18 +1152,6 @@ AS_CASE([$host_os_gui], [cygwin* | mingw*], [ ]) ]) - dnl Check for the Xdbe extension unless disabled... - xdbe_found=no - AS_IF([test x$enable_xdbe != xno], [ - AC_CHECK_HEADER([X11/extensions/Xdbe.h], [ - AC_CHECK_LIB([Xext], [XdbeQueryExtension], [ - AC_DEFINE([HAVE_XDBE]) - LIBS="-lXext $LIBS" - xdbe_found=yes - ]) - ], [], [#includeThis returns true if the system has the capabilities by default or
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index 4d30cc2e3..a57316207 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -2489,9 +2489,6 @@ Fl_X* Fl_X::set_xid(Fl_Window* win, Window winxid) {
xp->next = Fl_X::first;
xp->region = 0;
Fl_Window_Driver::driver(win)->wait_for_expose_value = 1;
-#ifdef USE_XDBE
- Fl_X11_Window_Driver::driver(win)->backbuffer_bad = 1;
-#endif
Fl_X::first = xp;
if (win->modal()) {Fl::modal_ = win; fl_fix_focus();}
return xp;
diff --git a/src/drivers/X11/Fl_X11_Screen_Driver.cxx b/src/drivers/X11/Fl_X11_Screen_Driver.cxx
index 4fd36edb6..ed8c54dfa 100644
--- a/src/drivers/X11/Fl_X11_Screen_Driver.cxx
+++ b/src/drivers/X11/Fl_X11_Screen_Driver.cxx
@@ -35,10 +35,6 @@
# include