mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Only report missing features when color manager itself is supported
This commit is contained in:
parent
fe860d170f
commit
df22e8c9b7
1 changed files with 5 additions and 3 deletions
8
glfw/wl_init.c
vendored
8
glfw/wl_init.c
vendored
|
|
@ -763,9 +763,11 @@ get_compositor_missing_capabilities(void) {
|
|||
#define P(x) p += snprintf(p, sizeof(buf) - (p - buf), "%s ", x);
|
||||
if (_glfw.wl.xdg_wm_base_version < 6) P("window-state-suspended");
|
||||
if (_glfw.wl.xdg_wm_base_version < 5) P("window-capabilities");
|
||||
if (!_glfw.wl.color_manager.supported_transfer_functions.gamma22) P("gamma22");
|
||||
if (!_glfw.wl.color_manager.supported_transfer_functions.ext_linear) P("ext_linear");
|
||||
if (!_glfw.wl.color_manager.supported_primaries.srgb) P("srgb");
|
||||
if (_glfw.wl.wp_color_manager_v1 != NULL) {
|
||||
if (!_glfw.wl.color_manager.supported_transfer_functions.gamma22) P("gamma22");
|
||||
if (!_glfw.wl.color_manager.supported_transfer_functions.ext_linear) P("ext_linear");
|
||||
if (!_glfw.wl.color_manager.supported_primaries.srgb) P("srgb");
|
||||
}
|
||||
#undef P
|
||||
#undef C
|
||||
while (p > buf && (p - 1)[0] == ' ') { p--; *p = 0; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue