aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-05-01 06:34:49 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-05-01 06:54:30 +0000
commite5a0755451b736c635be58764799ef8d7b536e8d (patch)
tree0d084fbce2136f706369a640a46f04f058a492f2 /config.h
parentconfig: gamma-correct-blending: disable by default (diff)
config: tweak.surface-bit-depth now defaults to 'auto'
When set to 'auto', use 10-bit surfaces if gamma-correct blending is enabled, and 8-bit surfaces otherwise. Note that we may still fallback to 8-bit surfaces (without disabling gamma-correct blending) if the compositor does not support 10-bit surfaces. Closes #2082
Diffstat (limited to 'config.h')
-rw-r--r--config.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/config.h b/config.h
index be465d68..80081906 100644
--- a/config.h
+++ b/config.h
@@ -195,6 +195,12 @@ enum which_color_theme {
COLOR_THEME2,
};
+enum shm_bit_depth {
+ SHM_BITS_AUTO,
+ SHM_BITS_8,
+ SHM_BITS_10
+};
+
struct config {
char *term;
char *shell;
@@ -419,7 +425,7 @@ struct config {
bool box_drawing_solid_shades;
bool font_monospace_warn;
bool sixel;
- enum { SHM_8_BIT, SHM_10_BIT } surface_bit_depth;
+ enum shm_bit_depth surface_bit_depth;
} tweak;
struct {