diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-04-14 14:58:23 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-04-14 14:58:23 +0000 |
| commit | d2d4f538619177bc3af6c09e2465272f564ee780 (patch) | |
| tree | 63b0f28db211a4dc0d1346f82179f20641bc588d /config.h | |
| parent | changelog: 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.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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; |
