GNOME: Add a new option to control the color of the kitty window titlebar

This commit is contained in:
Kovid Goyal
2021-04-25 11:22:23 +05:30
parent 12763e19d8
commit 62656b24eb
14 changed files with 69 additions and 9 deletions

9
glfw/wl_window.c vendored
View File

@@ -2001,3 +2001,12 @@ GLFWAPI unsigned long long glfwDBusUserNotify(const char *app_name, const char*
GLFWAPI void glfwDBusSetUserNotificationHandler(GLFWDBusnotificationactivatedfun handler) {
glfw_dbus_set_user_notification_activated_handler(handler);
}
GLFWAPI bool glfwWaylandSetTitlebarColor(GLFWwindow *handle, uint32_t color, bool use_system_color) {
_GLFWwindow* window = (_GLFWwindow*) handle;
if (!window->wl.decorations.serverSide) {
set_titlebar_color(window, color, use_system_color);
return true;
}
return false;
}