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:
@@ -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 :
|
||||
|
||||
Reference in New Issue
Block a user