aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-04-05 18:31:19 -0400
committerLibravatar emersion <contact@emersion.fr>2018-04-05 18:31:19 -0400
commit076bedb85eface4a6c41a0e99059c89186bdb275 (patch)
tree9390c5c41be12daa0e5443416d7868a8f59ea569 /include
parentAdd damage tracking for xwayland unmanaged surfaces (diff)
downloadsway-076bedb85eface4a6c41a0e99059c89186bdb275.tar.gz
sway-076bedb85eface4a6c41a0e99059c89186bdb275.tar.zst
sway-076bedb85eface4a6c41a0e99059c89186bdb275.zip
Add container_damage_whole
Diffstat (limited to 'include')
-rw-r--r--include/sway/output.h4
-rw-r--r--include/sway/tree/container.h8
2 files changed, 7 insertions, 5 deletions
diff --git a/include/sway/output.h b/include/sway/output.h
index 9964a484..8945dde4 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -37,8 +37,8 @@ void output_damage_whole(struct sway_output *output);
37void output_damage_whole_view(struct sway_output *output, 37void output_damage_whole_view(struct sway_output *output,
38 struct sway_view *view); 38 struct sway_view *view);
39 39
40void output_damage_whole_surface(struct sway_output *output, 40void output_damage_whole_rect(struct sway_output *output, double ox, double oy,
41 struct wlr_surface *surface, double ox, double oy); 41 int width, int height);
42 42
43struct sway_container *output_by_name(const char *name); 43struct sway_container *output_by_name(const char *name);
44 44
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 3a3a9429..7acb607b 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -97,8 +97,7 @@ struct sway_container *container_create(enum sway_container_type type);
97 97
98const char *container_type_to_str(enum sway_container_type type); 98const char *container_type_to_str(enum sway_container_type type);
99 99
100struct sway_container *output_create( 100struct sway_container *output_create(struct sway_output *sway_output);
101 struct sway_output *sway_output);
102 101
103/** 102/**
104 * Create a new container container. A container container can be a a child of 103 * Create a new container container. A container container can be a a child of
@@ -116,7 +115,8 @@ struct sway_container *output_create(struct sway_output *sway_output);
116 * Create a new workspace container. Workspaces are children of an output 115 * Create a new workspace container. Workspaces are children of an output
117 * container and are ordered alphabetically by name. 116 * container and are ordered alphabetically by name.
118 */ 117 */
119struct sway_container *workspace_create(struct sway_container *output, const char *name); 118struct sway_container *workspace_create(struct sway_container *output,
119 const char *name);
120 120
121/* 121/*
122 * Create a new view container. A view can be a child of a workspace container 122 * Create a new view container. A view can be a child of a workspace container
@@ -182,4 +182,6 @@ bool container_has_child(struct sway_container *con,
182 182
183void container_create_notify(struct sway_container *container); 183void container_create_notify(struct sway_container *container);
184 184
185void container_damage_whole(struct sway_container *container);
186
185#endif 187#endif