2018-11-04 06:15:38 +08:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
// Copyright (c) 2018 Yuxuan Shui <yshuiv7@gmail.com>
|
|
|
|
|
2019-01-21 05:15:20 +08:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <xcb/xcb.h>
|
|
|
|
|
2018-11-04 06:15:38 +08:00
|
|
|
#include "diagnostic.h"
|
2019-01-19 07:30:44 +08:00
|
|
|
#include "config.h"
|
2018-11-04 06:15:38 +08:00
|
|
|
#include "common.h"
|
|
|
|
|
|
|
|
void print_diagnostics(session_t *ps) {
|
|
|
|
printf("**Version:** " COMPTON_VERSION "\n");
|
|
|
|
//printf("**CFLAGS:** %s\n", "??");
|
|
|
|
printf("\n### Extensions:\n\n");
|
|
|
|
printf("* Name Pixmap: %s\n", ps->has_name_pixmap ? "Yes" : "No");
|
|
|
|
printf("* Shape: %s\n", ps->shape_exists ? "Yes" : "No");
|
|
|
|
printf("* XRandR: %s\n", ps->randr_exists ? "Yes" : "No");
|
|
|
|
printf("* Present: %s\n", ps->present_exists ? "Present" : "Not Present");
|
|
|
|
printf("\n### Misc:\n\n");
|
|
|
|
printf("* Use Overlay: %s\n", ps->overlay != XCB_NONE ? "Yes" : "No");
|
|
|
|
#ifdef __FAST_MATH__
|
|
|
|
printf("* Fast Math: Yes\n");
|
|
|
|
#endif
|
2018-12-16 03:44:11 +08:00
|
|
|
printf("* Config file used: %s\n", ps->o.config_file ?: "None");
|
2018-11-04 06:15:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// vim: set noet sw=8 ts=8 :
|