From 2f64c6a86194db91be2ca873036b683f8f5b8739 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 30 Oct 2019 17:25:49 +0100 Subject: Concentrate source code that supports Darwin + XQuartz + fink as test platform --- src/Fl_x.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_x.cxx') diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 6c1da73a4..59c442ed5 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -697,7 +697,7 @@ void fl_open_display(Display* d) { #if USE_XRANDR void *libxrandr_addr = dlopen("libXrandr.so.2", RTLD_LAZY); - if (!libxrandr_addr) libxrandr_addr = dlopen("libXrandr.so", RTLD_LAZY); + if (!libxrandr_addr) libxrandr_addr = Fl::system_driver()->dlopen("libXrandr.so"); if (libxrandr_addr) { int error_base; typedef Bool (*XRRQueryExtension_type)(Display*, int*, int*); -- cgit v1.2.3