summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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*);