summaryrefslogtreecommitdiff
path: root/src/drivers/X11/Fl_X11_Screen_Driver.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-11-26 15:01:36 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-11-26 15:01:54 +0100
commit84cf24948245d893cde9b3ef8c9eee614191de80 (patch)
tree1d9a4b8c520c0f02481e7c7f75b1c118bb137bda /src/drivers/X11/Fl_X11_Screen_Driver.cxx
parent2b400f6abcbd26377b298deb5ee6f7d0166cdfd6 (diff)
Fix for issue #253: Remove xdbe support
Diffstat (limited to 'src/drivers/X11/Fl_X11_Screen_Driver.cxx')
-rw-r--r--src/drivers/X11/Fl_X11_Screen_Driver.cxx23
1 files changed, 0 insertions, 23 deletions
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 <X11/extensions/Xinerama.h>
#endif
-#if USE_XDBE
-#include <X11/extensions/Xdbe.h>
-#endif
-
# include <X11/Xutil.h>
# ifdef __sgi
# include <X11/extensions/readdisplay.h>
@@ -146,32 +142,13 @@ static int test_visual(XVisualInfo& v, int flags) {
// simpler if we can't use colormapped visuals at all:
if (v.c_class != StaticColor && v.c_class != TrueColor) return 0;
#endif
-#if USE_XDBE
- if (flags & FL_DOUBLE) {
- static XdbeScreenVisualInfo *xdbejunk;
- if (!xdbejunk) {
- int event_base, error_base;
- if (!XdbeQueryExtension(fl_display, &event_base, &error_base)) return 0;
- Drawable root = RootWindow(fl_display,fl_screen);
- int numscreens = 1;
- xdbejunk = XdbeGetVisualInfo(fl_display,&root,&numscreens);
- if (!xdbejunk) return 0;
- }
- for (int j = 0; ; j++) {
- if (j >= xdbejunk->count) return 0;
- if (xdbejunk->visinfo[j].visual == v.visualid) break;
- }
- }
-#endif
return 1;
}
int Fl_X11_Screen_Driver::visual(int flags)
{
-#if USE_XDBE == 0
if (flags & FL_DOUBLE) return 0;
-#endif
open_display();
// always use default if possible:
if (test_visual(*fl_visual, flags)) return 1;