Merge pull request #1789 from psychon/remove-xrdb-warning

Don't print warnings for non-existing xrdb values
This commit is contained in:
Emmanuel Lepage Vallée 2017-05-24 04:37:22 -04:00 committed by GitHub
commit f311a9137e

4
xrdb.c
View file

@ -38,10 +38,6 @@ int luaA_xrdb_get_value(lua_State *L) {
char *result = NULL;
if (xcb_xrm_resource_get_string(globalconf.xrmdb, resource_name, resource_class, &result) < 0 ) {
if (strlen(resource_class))
luaA_warn(L, "Failed to get xrdb value '%s' (class '%s').", resource_name, resource_class);
else
luaA_warn(L, "Failed to get xrdb value '%s'.", resource_name);
lua_pushnil(L);
} else {
lua_pushstring(L, result);