diff options
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/commands.h | 1 | ||||
-rw-r--r-- | include/sway/config.h | 3 | ||||
-rw-r--r-- | include/sway/criteria.h | 6 | ||||
-rw-r--r-- | include/sway/input/input-manager.h | 3 | ||||
-rw-r--r-- | include/sway/output.h | 2 | ||||
-rw-r--r-- | include/sway/server.h | 8 | ||||
-rw-r--r-- | include/sway/tree/root.h | 4 | ||||
-rw-r--r-- | include/sway/tree/view.h | 13 |
8 files changed, 27 insertions, 13 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index 27058587..0a9fdc70 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h | |||
@@ -283,6 +283,7 @@ sway_cmd input_cmd_xkb_variant; | |||
283 | 283 | ||
284 | sway_cmd output_cmd_adaptive_sync; | 284 | sway_cmd output_cmd_adaptive_sync; |
285 | sway_cmd output_cmd_background; | 285 | sway_cmd output_cmd_background; |
286 | sway_cmd output_cmd_color_profile; | ||
286 | sway_cmd output_cmd_disable; | 287 | sway_cmd output_cmd_disable; |
287 | sway_cmd output_cmd_dpms; | 288 | sway_cmd output_cmd_dpms; |
288 | sway_cmd output_cmd_enable; | 289 | sway_cmd output_cmd_enable; |
diff --git a/include/sway/config.h b/include/sway/config.h index 5ccc3e77..3e3a104e 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #include <wlr/interfaces/wlr_switch.h> | 7 | #include <wlr/interfaces/wlr_switch.h> |
8 | #include <wlr/types/wlr_tablet_tool.h> | 8 | #include <wlr/types/wlr_tablet_tool.h> |
9 | #include <wlr/util/box.h> | 9 | #include <wlr/util/box.h> |
10 | #include <wlr/render/color.h> | ||
10 | #include <xkbcommon/xkbcommon.h> | 11 | #include <xkbcommon/xkbcommon.h> |
11 | #include <xf86drmMode.h> | 12 | #include <xf86drmMode.h> |
12 | #include "../include/config.h" | 13 | #include "../include/config.h" |
@@ -285,6 +286,8 @@ struct output_config { | |||
285 | int max_render_time; // In milliseconds | 286 | int max_render_time; // In milliseconds |
286 | int adaptive_sync; | 287 | int adaptive_sync; |
287 | enum render_bit_depth render_bit_depth; | 288 | enum render_bit_depth render_bit_depth; |
289 | bool set_color_transform; | ||
290 | struct wlr_color_transform *color_transform; | ||
288 | 291 | ||
289 | char *background; | 292 | char *background; |
290 | char *background_option; | 293 | char *background_option; |
diff --git a/include/sway/criteria.h b/include/sway/criteria.h index 8da345ea..ae546821 100644 --- a/include/sway/criteria.h +++ b/include/sway/criteria.h | |||
@@ -7,6 +7,10 @@ | |||
7 | #include "list.h" | 7 | #include "list.h" |
8 | #include "tree/view.h" | 8 | #include "tree/view.h" |
9 | 9 | ||
10 | #if WLR_HAS_XWAYLAND | ||
11 | #include "sway/xwayland.h" | ||
12 | #endif | ||
13 | |||
10 | enum criteria_type { | 14 | enum criteria_type { |
11 | CT_COMMAND = 1 << 0, | 15 | CT_COMMAND = 1 << 0, |
12 | CT_ASSIGN_OUTPUT = 1 << 1, | 16 | CT_ASSIGN_OUTPUT = 1 << 1, |
@@ -36,7 +40,7 @@ struct criteria { | |||
36 | struct pattern *app_id; | 40 | struct pattern *app_id; |
37 | struct pattern *con_mark; | 41 | struct pattern *con_mark; |
38 | uint32_t con_id; // internal ID | 42 | uint32_t con_id; // internal ID |
39 | #if HAVE_XWAYLAND | 43 | #if WLR_HAS_XWAYLAND |
40 | struct pattern *class; | 44 | struct pattern *class; |
41 | uint32_t id; // X11 window ID | 45 | uint32_t id; // X11 window ID |
42 | struct pattern *instance; | 46 | struct pattern *instance; |
diff --git a/include/sway/input/input-manager.h b/include/sway/input/input-manager.h index 45c75199..b014e18f 100644 --- a/include/sway/input/input-manager.h +++ b/include/sway/input/input-manager.h | |||
@@ -5,10 +5,11 @@ | |||
5 | #include <wlr/types/wlr_virtual_keyboard_v1.h> | 5 | #include <wlr/types/wlr_virtual_keyboard_v1.h> |
6 | #include <wlr/types/wlr_virtual_pointer_v1.h> | 6 | #include <wlr/types/wlr_virtual_pointer_v1.h> |
7 | #include <wlr/types/wlr_transient_seat_v1.h> | 7 | #include <wlr/types/wlr_transient_seat_v1.h> |
8 | #include "sway/server.h" | ||
9 | #include "sway/config.h" | 8 | #include "sway/config.h" |
10 | #include "list.h" | 9 | #include "list.h" |
11 | 10 | ||
11 | struct sway_server; | ||
12 | |||
12 | struct sway_input_device { | 13 | struct sway_input_device { |
13 | char *identifier; | 14 | char *identifier; |
14 | struct wlr_input_device *wlr_device; | 15 | struct wlr_input_device *wlr_device; |
diff --git a/include/sway/output.h b/include/sway/output.h index d546d488..2189c6e8 100644 --- a/include/sway/output.h +++ b/include/sway/output.h | |||
@@ -66,6 +66,8 @@ struct sway_output { | |||
66 | struct wl_signal disable; | 66 | struct wl_signal disable; |
67 | } events; | 67 | } events; |
68 | 68 | ||
69 | struct wlr_color_transform *color_transform; | ||
70 | |||
69 | struct timespec last_presentation; | 71 | struct timespec last_presentation; |
70 | uint32_t refresh_nsec; | 72 | uint32_t refresh_nsec; |
71 | int max_render_time; // In milliseconds | 73 | int max_render_time; // In milliseconds |
diff --git a/include/sway/server.h b/include/sway/server.h index c71851f6..3a63df34 100644 --- a/include/sway/server.h +++ b/include/sway/server.h | |||
@@ -5,7 +5,7 @@ | |||
5 | #include "config.h" | 5 | #include "config.h" |
6 | #include "list.h" | 6 | #include "list.h" |
7 | #include "sway/desktop/idle_inhibit_v1.h" | 7 | #include "sway/desktop/idle_inhibit_v1.h" |
8 | #if HAVE_XWAYLAND | 8 | #if WLR_HAS_XWAYLAND |
9 | #include "sway/xwayland.h" | 9 | #include "sway/xwayland.h" |
10 | #endif | 10 | #endif |
11 | 11 | ||
@@ -59,7 +59,7 @@ struct sway_server { | |||
59 | 59 | ||
60 | struct wlr_tablet_manager_v2 *tablet_v2; | 60 | struct wlr_tablet_manager_v2 *tablet_v2; |
61 | 61 | ||
62 | #if HAVE_XWAYLAND | 62 | #if WLR_HAS_XWAYLAND |
63 | struct sway_xwayland xwayland; | 63 | struct sway_xwayland xwayland; |
64 | struct wl_listener xwayland_surface; | 64 | struct wl_listener xwayland_surface; |
65 | struct wl_listener xwayland_ready; | 65 | struct wl_listener xwayland_ready; |
@@ -81,6 +81,8 @@ struct sway_server { | |||
81 | struct wlr_pointer_constraints_v1 *pointer_constraints; | 81 | struct wlr_pointer_constraints_v1 *pointer_constraints; |
82 | struct wl_listener pointer_constraint; | 82 | struct wl_listener pointer_constraint; |
83 | 83 | ||
84 | struct wlr_xdg_output_manager_v1 *xdg_output_manager_v1; | ||
85 | |||
84 | struct wlr_output_manager_v1 *output_manager_v1; | 86 | struct wlr_output_manager_v1 *output_manager_v1; |
85 | struct wl_listener output_manager_apply; | 87 | struct wl_listener output_manager_apply; |
86 | struct wl_listener output_manager_test; | 88 | struct wl_listener output_manager_test; |
@@ -165,7 +167,7 @@ void sway_session_lock_add_output(struct sway_session_lock *lock, | |||
165 | bool sway_session_lock_has_surface(struct sway_session_lock *lock, | 167 | bool sway_session_lock_has_surface(struct sway_session_lock *lock, |
166 | struct wlr_surface *surface); | 168 | struct wlr_surface *surface); |
167 | void handle_xdg_shell_toplevel(struct wl_listener *listener, void *data); | 169 | void handle_xdg_shell_toplevel(struct wl_listener *listener, void *data); |
168 | #if HAVE_XWAYLAND | 170 | #if WLR_HAS_XWAYLAND |
169 | void handle_xwayland_surface(struct wl_listener *listener, void *data); | 171 | void handle_xwayland_surface(struct wl_listener *listener, void *data); |
170 | #endif | 172 | #endif |
171 | void handle_server_decoration(struct wl_listener *listener, void *data); | 173 | void handle_server_decoration(struct wl_listener *listener, void *data); |
diff --git a/include/sway/tree/root.h b/include/sway/tree/root.h index 15df0f55..7de0abcd 100644 --- a/include/sway/tree/root.h +++ b/include/sway/tree/root.h | |||
@@ -2,12 +2,12 @@ | |||
2 | #define _SWAY_ROOT_H | 2 | #define _SWAY_ROOT_H |
3 | #include <wayland-server-core.h> | 3 | #include <wayland-server-core.h> |
4 | #include <wayland-util.h> | 4 | #include <wayland-util.h> |
5 | #include <wlr/config.h> | ||
5 | #include <wlr/types/wlr_output_layout.h> | 6 | #include <wlr/types/wlr_output_layout.h> |
6 | #include <wlr/types/wlr_scene.h> | 7 | #include <wlr/types/wlr_scene.h> |
7 | #include <wlr/render/wlr_texture.h> | 8 | #include <wlr/render/wlr_texture.h> |
8 | #include "sway/tree/container.h" | 9 | #include "sway/tree/container.h" |
9 | #include "sway/tree/node.h" | 10 | #include "sway/tree/node.h" |
10 | #include "config.h" | ||
11 | #include "list.h" | 11 | #include "list.h" |
12 | 12 | ||
13 | extern struct sway_root *root; | 13 | extern struct sway_root *root; |
@@ -47,7 +47,7 @@ struct sway_root { | |||
47 | struct wlr_scene_tree *shell_top; | 47 | struct wlr_scene_tree *shell_top; |
48 | struct wlr_scene_tree *fullscreen; | 48 | struct wlr_scene_tree *fullscreen; |
49 | struct wlr_scene_tree *fullscreen_global; | 49 | struct wlr_scene_tree *fullscreen_global; |
50 | #if HAVE_XWAYLAND | 50 | #if WLR_HAS_XWAYLAND |
51 | struct wlr_scene_tree *unmanaged; | 51 | struct wlr_scene_tree *unmanaged; |
52 | #endif | 52 | #endif |
53 | struct wlr_scene_tree *shell_overlay; | 53 | struct wlr_scene_tree *shell_overlay; |
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index 7faacdcc..3ae8cf22 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h | |||
@@ -1,10 +1,11 @@ | |||
1 | #ifndef _SWAY_VIEW_H | 1 | #ifndef _SWAY_VIEW_H |
2 | #define _SWAY_VIEW_H | 2 | #define _SWAY_VIEW_H |
3 | #include <wayland-server-core.h> | 3 | #include <wayland-server-core.h> |
4 | #include <wlr/config.h> | ||
4 | #include <wlr/types/wlr_compositor.h> | 5 | #include <wlr/types/wlr_compositor.h> |
5 | #include <wlr/types/wlr_scene.h> | 6 | #include <wlr/types/wlr_scene.h> |
6 | #include "sway/config.h" | 7 | #include "sway/config.h" |
7 | #if HAVE_XWAYLAND | 8 | #if WLR_HAS_XWAYLAND |
8 | #include <wlr/xwayland.h> | 9 | #include <wlr/xwayland.h> |
9 | #endif | 10 | #endif |
10 | #include "sway/input/input-manager.h" | 11 | #include "sway/input/input-manager.h" |
@@ -15,7 +16,7 @@ struct sway_xdg_decoration; | |||
15 | 16 | ||
16 | enum sway_view_type { | 17 | enum sway_view_type { |
17 | SWAY_VIEW_XDG_SHELL, | 18 | SWAY_VIEW_XDG_SHELL, |
18 | #if HAVE_XWAYLAND | 19 | #if WLR_HAS_XWAYLAND |
19 | SWAY_VIEW_XWAYLAND, | 20 | SWAY_VIEW_XWAYLAND, |
20 | #endif | 21 | #endif |
21 | }; | 22 | }; |
@@ -27,7 +28,7 @@ enum sway_view_prop { | |||
27 | VIEW_PROP_INSTANCE, | 28 | VIEW_PROP_INSTANCE, |
28 | VIEW_PROP_WINDOW_TYPE, | 29 | VIEW_PROP_WINDOW_TYPE, |
29 | VIEW_PROP_WINDOW_ROLE, | 30 | VIEW_PROP_WINDOW_ROLE, |
30 | #if HAVE_XWAYLAND | 31 | #if WLR_HAS_XWAYLAND |
31 | VIEW_PROP_X11_WINDOW_ID, | 32 | VIEW_PROP_X11_WINDOW_ID, |
32 | VIEW_PROP_X11_PARENT_ID, | 33 | VIEW_PROP_X11_PARENT_ID, |
33 | #endif | 34 | #endif |
@@ -98,7 +99,7 @@ struct sway_view { | |||
98 | 99 | ||
99 | union { | 100 | union { |
100 | struct wlr_xdg_toplevel *wlr_xdg_toplevel; | 101 | struct wlr_xdg_toplevel *wlr_xdg_toplevel; |
101 | #if HAVE_XWAYLAND | 102 | #if WLR_HAS_XWAYLAND |
102 | struct wlr_xwayland_surface *wlr_xwayland_surface; | 103 | struct wlr_xwayland_surface *wlr_xwayland_surface; |
103 | #endif | 104 | #endif |
104 | }; | 105 | }; |
@@ -127,7 +128,7 @@ struct sway_xdg_shell_view { | |||
127 | struct wl_listener unmap; | 128 | struct wl_listener unmap; |
128 | struct wl_listener destroy; | 129 | struct wl_listener destroy; |
129 | }; | 130 | }; |
130 | #if HAVE_XWAYLAND | 131 | #if WLR_HAS_XWAYLAND |
131 | struct sway_xwayland_view { | 132 | struct sway_xwayland_view { |
132 | struct sway_view view; | 133 | struct sway_view view; |
133 | 134 | ||
@@ -293,7 +294,7 @@ void view_center_and_clip_surface(struct sway_view *view); | |||
293 | 294 | ||
294 | struct sway_view *view_from_wlr_xdg_surface( | 295 | struct sway_view *view_from_wlr_xdg_surface( |
295 | struct wlr_xdg_surface *xdg_surface); | 296 | struct wlr_xdg_surface *xdg_surface); |
296 | #if HAVE_XWAYLAND | 297 | #if WLR_HAS_XWAYLAND |
297 | struct sway_view *view_from_wlr_xwayland_surface( | 298 | struct sway_view *view_from_wlr_xwayland_surface( |
298 | struct wlr_xwayland_surface *xsurface); | 299 | struct wlr_xwayland_surface *xsurface); |
299 | #endif | 300 | #endif |