Make get_early_config even earlier

Also improve the management of X Display and session_t.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-02-07 22:29:24 +00:00
parent 2867ac7a1c
commit a019ff453b
5 changed files with 39 additions and 43 deletions

View File

@@ -8,7 +8,7 @@
#include "config.h"
#include "common.h"
void print_diagnostics(session_t *ps) {
void print_diagnostics(session_t *ps, const char *config_file) {
printf("**Version:** " COMPTON_VERSION "\n");
//printf("**CFLAGS:** %s\n", "??");
printf("\n### Extensions:\n\n");
@@ -21,7 +21,7 @@ void print_diagnostics(session_t *ps) {
#ifdef __FAST_MATH__
printf("* Fast Math: Yes\n");
#endif
printf("* Config file used: %s\n", ps->o.config_file ?: "None");
printf("* Config file used: %s\n", config_file ?: "None");
}
// vim: set noet sw=8 ts=8 :