Track initial color scheme preference read on Linux

This commit is contained in:
Kovid Goyal
2024-11-07 10:38:13 +05:30
parent 27cf969a64
commit 754288557d
8 changed files with 21 additions and 15 deletions

4
glfw/input.c vendored
View File

@@ -448,9 +448,9 @@ void _glfwInputJoystickHat(_GLFWjoystick* js, int hat, char value)
js->hats[hat] = value;
}
void _glfwInputColorScheme(GLFWColorScheme value) {
void _glfwInputColorScheme(GLFWColorScheme value, bool is_initial_value) {
_glfwPlatformInputColorScheme(value);
if (_glfw.callbacks.system_color_theme_change) _glfw.callbacks.system_color_theme_change(value);
if (_glfw.callbacks.system_color_theme_change) _glfw.callbacks.system_color_theme_change(value, is_initial_value);
}
//////////////////////////////////////////////////////////////////////////