mirror of https://github.com/yshui/picom.git
Rename COMPTON_VERSION to PICOM_VERSION
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
2dae094981
commit
9f04d824b7
|
@ -15,7 +15,7 @@ if git.found()
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
add_global_arguments('-DCOMPTON_VERSION="'+version+'"', language: 'c')
|
add_global_arguments('-DPICOM_VERSION="'+version+'"', language: 'c')
|
||||||
|
|
||||||
if get_option('buildtype') == 'release'
|
if get_option('buildtype') == 'release'
|
||||||
add_global_arguments('-DNDEBUG', language: 'c')
|
add_global_arguments('-DNDEBUG', language: 'c')
|
||||||
|
|
|
@ -1153,7 +1153,7 @@ static bool cdbus_process_opts_get(session_t *ps, DBusMessage *msg) {
|
||||||
|
|
||||||
// version
|
// version
|
||||||
if (!strcmp("version", target)) {
|
if (!strcmp("version", target)) {
|
||||||
cdbus_reply_string(ps, msg, COMPTON_VERSION);
|
cdbus_reply_string(ps, msg, PICOM_VERSION);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
void print_diagnostics(session_t *ps, const char *config_file, bool compositor_running) {
|
void print_diagnostics(session_t *ps, const char *config_file, bool compositor_running) {
|
||||||
printf("**Version:** " COMPTON_VERSION "\n");
|
printf("**Version:** " PICOM_VERSION "\n");
|
||||||
//printf("**CFLAGS:** %s\n", "??");
|
//printf("**CFLAGS:** %s\n", "??");
|
||||||
printf("\n### Extensions:\n\n");
|
printf("\n### Extensions:\n\n");
|
||||||
printf("* Shape: %s\n", ps->shape_exists ? "Yes" : "No");
|
printf("* Shape: %s\n", ps->shape_exists ? "Yes" : "No");
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
static void usage(const char *argv0, int ret) {
|
static void usage(const char *argv0, int ret) {
|
||||||
#define WARNING_DISABLED " (DISABLED AT COMPILE TIME)"
|
#define WARNING_DISABLED " (DISABLED AT COMPILE TIME)"
|
||||||
static const char *usage_text =
|
static const char *usage_text =
|
||||||
"picom (" COMPTON_VERSION ")\n"
|
"picom (" PICOM_VERSION ")\n"
|
||||||
"Please report bugs to https://github.com/yshui/picom\n\n"
|
"Please report bugs to https://github.com/yshui/picom\n\n"
|
||||||
"usage: %s [options]\n"
|
"usage: %s [options]\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
|
@ -495,7 +495,7 @@ bool get_early_config(int argc, char *const *argv, char **config_file, bool *all
|
||||||
} else if (o == 314) {
|
} else if (o == 314) {
|
||||||
*all_xerrors = true;
|
*all_xerrors = true;
|
||||||
} else if (o == 318) {
|
} else if (o == 318) {
|
||||||
printf("%s\n", COMPTON_VERSION);
|
printf("%s\n", PICOM_VERSION);
|
||||||
return true;
|
return true;
|
||||||
} else if (o == '?' || o == ':') {
|
} else if (o == '?' || o == ':') {
|
||||||
usage(argv[0], 1);
|
usage(argv[0], 1);
|
||||||
|
|
|
@ -1092,7 +1092,7 @@ static int register_cm(session_t *ps) {
|
||||||
ps->c, xcb_change_property_checked(
|
ps->c, xcb_change_property_checked(
|
||||||
ps->c, XCB_PROP_MODE_REPLACE, ps->reg_win,
|
ps->c, XCB_PROP_MODE_REPLACE, ps->reg_win,
|
||||||
get_atom(ps->atoms, "COMPTON_VERSION"), XCB_ATOM_STRING, 8,
|
get_atom(ps->atoms, "COMPTON_VERSION"), XCB_ATOM_STRING, 8,
|
||||||
(uint32_t)strlen(COMPTON_VERSION), COMPTON_VERSION));
|
(uint32_t)strlen(PICOM_VERSION), PICOM_VERSION));
|
||||||
if (e) {
|
if (e) {
|
||||||
log_error_x_error(e, "Failed to set COMPTON_VERSION.");
|
log_error_x_error(e, "Failed to set COMPTON_VERSION.");
|
||||||
free(e);
|
free(e);
|
||||||
|
|
Loading…
Reference in New Issue