Fix for STR#2877: try to load libXrandr.so.2

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9695 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2012-10-04 17:08:23 +00:00
parent 91a300f6b6
commit 5e5fb530a2

View File

@ -654,7 +654,8 @@ void fl_open_display(Display* d) {
Fl::visual(FL_RGB);
#endif
#if USE_XRANDR
void *libxrandr_addr = dlopen("libXrandr.so", RTLD_LAZY);
void *libxrandr_addr = dlopen("libXrandr.so.2", RTLD_LAZY);
if (!libxrandr_addr) libxrandr_addr = dlopen("libXrandr.so", RTLD_LAZY);
if (libxrandr_addr) {
int error_base;
typedef Bool (*XRRQueryExtension_type)(Display*, int*, int*);