- extending the dlopen call by RTLD_GLOBAL, due to the fact that
there is a bug in libwayland-server / client which is currently not
working with only RTLD_NOW.
- this shoud have no side effects on other plugins.
// open library
void *libraryHandle;
dlerror(); // Clear any existing error
- libraryHandle = dlopen(libname.c_str(), RTLD_NOW /*LAZY*/);
+ libraryHandle = dlopen(libname.c_str(), RTLD_NOW | RTLD_GLOBAL /*LAZY*/);
const char* dlopen_error = dlerror();
if (!libraryHandle || dlopen_error)
{