Author: manolo
Date: 2012-10-04 10:08:23 -0700 (Thu, 04 Oct 2012)
New Revision: 9695
Log:
Fix for STR#2877: try to load libXrandr.so.2

Modified:
   branches/branch-1.3/src/Fl_x.cxx

Modified: branches/branch-1.3/src/Fl_x.cxx
===================================================================
--- branches/branch-1.3/src/Fl_x.cxx    2012-10-01 16:16:03 UTC (rev 9694)
+++ branches/branch-1.3/src/Fl_x.cxx    2012-10-04 17:08:23 UTC (rev 9695)
@@ -654,7 +654,8 @@
   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*);

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to