color management

This commit is contained in:
Devin Bayer 2020-07-14 17:01:00 +00:00
parent ea3ba203cc
commit 7ec61567c2
15 changed files with 119 additions and 1 deletions

View file

@ -110,6 +110,7 @@ sway_cmd cmd_client_unfocused;
sway_cmd cmd_client_urgent;
sway_cmd cmd_client_placeholder;
sway_cmd cmd_client_background;
sway_cmd cmd_color;
sway_cmd cmd_commands;
sway_cmd cmd_create_output;
sway_cmd cmd_default_border;
@ -269,6 +270,7 @@ sway_cmd input_cmd_xkb_variant;
sway_cmd output_cmd_adaptive_sync;
sway_cmd output_cmd_background;
sway_cmd output_cmd_color;
sway_cmd output_cmd_disable;
sway_cmd output_cmd_dpms;
sway_cmd output_cmd_enable;

View file

@ -6,6 +6,7 @@
#include <time.h>
#include <wlr/interfaces/wlr_switch.h>
#include <wlr/types/wlr_box.h>
#include <wlr/render/color.h>
#include <xkbcommon/xkbcommon.h>
#include "../include/config.h"
#include "list.h"
@ -253,6 +254,7 @@ struct output_config {
char *background_option;
char *background_fallback;
enum config_dpms dpms_state;
struct wlr_color_config *color;
};
/**

View file

@ -5,6 +5,7 @@
#include <wayland-server-core.h>
#include <wlr/types/wlr_box.h>
#include <wlr/types/wlr_output.h>
#include <wlr/render/color.h>
#include "config.h"
#include "sway/tree/node.h"
#include "sway/tree/view.h"

View file

@ -4,6 +4,8 @@
#include <sys/types.h>
#include <wlr/types/wlr_box.h>
#include <wlr/types/wlr_surface.h>
#include <wlr/types/wlr_surface.h>
#include <wlr/render/color.h>
#include "list.h"
#include "sway/tree/node.h"

View file

@ -119,6 +119,7 @@ struct sway_view {
struct wl_listener surface_new_subsurface;
int max_render_time; // In milliseconds
struct wlr_color_config *color;
enum seat_config_shortcuts_inhibit shortcuts_inhibit;
};