From 5e5fb530a27d0559e0b2f0fbc0a149e4502539ed Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 4 Oct 2012 17:08:23 +0000 Subject: 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 --- src/Fl_x.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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*); -- cgit v1.2.3