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

Modified:
   branches/branch-3.0/src/fltk3/x11.cxx

Modified: branches/branch-3.0/src/fltk3/x11.cxx
===================================================================
--- branches/branch-3.0/src/fltk3/x11.cxx       2012-10-04 17:08:23 UTC (rev 
9695)
+++ branches/branch-3.0/src/fltk3/x11.cxx       2012-10-04 17:14:02 UTC (rev 
9696)
@@ -665,7 +665,8 @@
   fltk3::visual(fltk3::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