aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Ivan Molodetskikh <yalterz@gmail.com>2019-09-25 17:35:41 +0300
committerLibravatar Simon Ser <contact@emersion.fr>2019-11-17 20:18:42 +0100
commitbd9a53f1a3e7dba247aab0a4e4268724acc12c38 (patch)
tree1547b79a82b1c4e22512d0262cbb133a14ef10a3 /include
parentAdd sway_surface (diff)
downloadsway-bd9a53f1a3e7dba247aab0a4e4268724acc12c38.tar.gz
sway-bd9a53f1a3e7dba247aab0a4e4268724acc12c38.tar.zst
sway-bd9a53f1a3e7dba247aab0a4e4268724acc12c38.zip
view: add max_render_time
Diffstat (limited to 'include')
-rw-r--r--include/sway/commands.h1
-rw-r--r--include/sway/output.h2
-rw-r--r--include/sway/surface.h7
-rw-r--r--include/sway/tree/view.h2
4 files changed, 11 insertions, 1 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index 5d468a42..45b5b0f4 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -145,6 +145,7 @@ sway_cmd cmd_kill;
145sway_cmd cmd_layout; 145sway_cmd cmd_layout;
146sway_cmd cmd_log_colors; 146sway_cmd cmd_log_colors;
147sway_cmd cmd_mark; 147sway_cmd cmd_mark;
148sway_cmd cmd_max_render_time;
148sway_cmd cmd_mode; 149sway_cmd cmd_mode;
149sway_cmd cmd_mouse_warping; 150sway_cmd cmd_mouse_warping;
150sway_cmd cmd_move; 151sway_cmd cmd_move;
diff --git a/include/sway/output.h b/include/sway/output.h
index 741f5b5e..ddc08022 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -72,7 +72,7 @@ struct sway_output *output_get_in_direction(struct sway_output *reference,
72void output_add_workspace(struct sway_output *output, 72void output_add_workspace(struct sway_output *output,
73 struct sway_workspace *workspace); 73 struct sway_workspace *workspace);
74 74
75typedef void (*sway_surface_iterator_func_t)(struct sway_output *output, 75typedef void (*sway_surface_iterator_func_t)(struct sway_output *output, struct sway_view *view,
76 struct wlr_surface *surface, struct wlr_box *box, float rotation, 76 struct wlr_surface *surface, struct wlr_box *box, float rotation,
77 void *user_data); 77 void *user_data);
78 78
diff --git a/include/sway/surface.h b/include/sway/surface.h
index 06874af2..4da96c02 100644
--- a/include/sway/surface.h
+++ b/include/sway/surface.h
@@ -6,6 +6,13 @@ struct sway_surface {
6 struct wlr_surface *wlr_surface; 6 struct wlr_surface *wlr_surface;
7 7
8 struct wl_listener destroy; 8 struct wl_listener destroy;
9
10 /**
11 * This timer can be used for issuing delayed frame done callbacks (for
12 * example, to improve presentation latency). Its handler is set to a
13 * function that issues a frame done callback to this surface.
14 */
15 struct wl_event_source *frame_done_timer;
9}; 16};
10 17
11#endif 18#endif
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index 44cd4a7b..29c87967 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -108,6 +108,8 @@ struct sway_view {
108 } events; 108 } events;
109 109
110 struct wl_listener surface_new_subsurface; 110 struct wl_listener surface_new_subsurface;
111
112 int max_render_time; // In milliseconds
111}; 113};
112 114
113struct sway_xdg_shell_view { 115struct sway_xdg_shell_view {