diff options
| author | Manolo Gouy <Manolo> | 2012-10-04 17:08:23 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2012-10-04 17:08:23 +0000 |
| commit | 5e5fb530a27d0559e0b2f0fbc0a149e4502539ed (patch) | |
| tree | 5bb6132df426c06381f9ef381c1553878b1d15f3 /src | |
| parent | 91a300f6b6a4b9fb3d70ed298de2e1144e55fcbd (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
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_x.cxx | 3 |
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*); |
