summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2012-10-04 17:08:23 +0000
committerManolo Gouy <Manolo>2012-10-04 17:08:23 +0000
commit5e5fb530a27d0559e0b2f0fbc0a149e4502539ed (patch)
tree5bb6132df426c06381f9ef381c1553878b1d15f3
parent91a300f6b6a4b9fb3d70ed298de2e1144e55fcbd (diff)
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
-rw-r--r--src/Fl_x.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index fa48e5fef..b349ea0e5 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -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*);