Is there a particular bug this is fixing? Looking at the xklavier source xkl_engine_get_instance should always return an object except in the case where display is NULL (which should probably be a g_assert).
Perhaps the correct fix here is to check if XOpenDisplay is NULL instead?
Is there a particular bug this is fixing? Looking at the xklavier source xkl_engine_ get_instance should always return an object except in the case where display is NULL (which should probably be a g_assert).
Perhaps the correct fix here is to check if XOpenDisplay is NULL instead?