aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-04-14 14:58:23 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-04-14 14:58:23 +0000
commitd2d4f538619177bc3af6c09e2465272f564ee780 (patch)
tree63b0f28db211a4dc0d1346f82179f20641bc588d /config.h
parentchangelog: move 'alpha-mode' to next-release (diff)
config+render: move alpha-mode to colors.alpha-mode, fix cursor handling
Move main.alpha-mode to colors.alpha-mode. Fix (inverted) cursor handling, by always using the bg color without alpha. Do a minor optimization, where we don't even lock at colors.alpha-mode if there's no transparency configured.
Diffstat (limited to 'config.h')
-rw-r--r--config.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/config.h b/config.h
index 18d1a477..2dec82c1 100644
--- a/config.h
+++ b/config.h
@@ -167,8 +167,6 @@ struct config {
enum { STARTUP_WINDOWED, STARTUP_MAXIMIZED, STARTUP_FULLSCREEN } startup_mode;
- enum { ALPHA_MODE_DEFAULT, ALPHA_MODE_MATCHING, ALPHA_MODE_ALL } alpha_mode;
-
bool dpi_aware;
enum {GAMMA_CORRECT_DISABLED,
GAMMA_CORRECT_ENABLED,
@@ -260,6 +258,12 @@ struct config {
uint32_t dim[8];
uint32_t sixel[16];
+ enum {
+ ALPHA_MODE_DEFAULT,
+ ALPHA_MODE_MATCHING,
+ ALPHA_MODE_ALL
+ } alpha_mode;
+
struct {
uint32_t fg;
uint32_t bg;