add error messages when symbols fail to resolve in xwl init

ref T5258
This commit is contained in:
Mike Blumenkrantz 2017-05-26 16:34:13 -04:00
parent c21c0d64eb
commit 9701588cc8
1 changed files with 2 additions and 0 deletions

View File

@ -289,8 +289,10 @@ xinit(void *d, Ecore_Thread *eth)
init_threads = dlsym(NULL, "XInitThreads");
if (init_threads) init_threads();
else ERR("Could not resolve XInitThreads");
open_display = dlsym(NULL, "XOpenDisplay");
if (open_display) disp = open_display(d);
else ERR("Could not resolve XOpenDisplay");
free(d);
ecore_thread_feedback(eth, disp);
}