diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-07 11:53:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-07 11:53:10 -0400 |
commit | c47b4d4edb7714612ec7236fafda5ca54cb92ce4 (patch) | |
tree | 9a7f991e9c3da20351b58c53e0b6dbe376f12dca /include | |
parent | Merge pull request #1700 from swaywm/move-cmd-full (diff) | |
parent | Damage all surfaces when damaging whole container (diff) | |
download | sway-c47b4d4edb7714612ec7236fafda5ca54cb92ce4.tar.gz sway-c47b4d4edb7714612ec7236fafda5ca54cb92ce4.tar.zst sway-c47b4d4edb7714612ec7236fafda5ca54cb92ce4.zip |
Merge pull request #1756 from emersion/output-damage
Fine-grained damage tracking
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/desktop.h | 7 | ||||
-rw-r--r-- | include/sway/output.h | 8 | ||||
-rw-r--r-- | include/sway/tree/view.h | 4 |
3 files changed, 7 insertions, 12 deletions
diff --git a/include/sway/desktop.h b/include/sway/desktop.h index 96bdc94c..f1ad759a 100644 --- a/include/sway/desktop.h +++ b/include/sway/desktop.h | |||
@@ -1,7 +1,4 @@ | |||
1 | #include <wlr/types/wlr_surface.h> | 1 | #include <wlr/types/wlr_surface.h> |
2 | 2 | ||
3 | void desktop_damage_whole_surface(struct wlr_surface *surface, double lx, | 3 | void desktop_damage_surface(struct wlr_surface *surface, double lx, double ly, |
4 | double ly); | 4 | bool whole); |
5 | |||
6 | void desktop_damage_from_surface(struct wlr_surface *surface, double lx, | ||
7 | double ly); | ||
diff --git a/include/sway/output.h b/include/sway/output.h index 4bffa2b7..56571548 100644 --- a/include/sway/output.h +++ b/include/sway/output.h | |||
@@ -34,11 +34,11 @@ struct sway_output { | |||
34 | 34 | ||
35 | void output_damage_whole(struct sway_output *output); | 35 | void output_damage_whole(struct sway_output *output); |
36 | 36 | ||
37 | void output_damage_whole_surface(struct sway_output *output, | 37 | void output_damage_surface(struct sway_output *output, double ox, double oy, |
38 | double ox, double oy, struct wlr_surface *surface); | 38 | struct wlr_surface *surface, bool whole); |
39 | 39 | ||
40 | void output_damage_whole_view(struct sway_output *output, | 40 | void output_damage_view(struct sway_output *output, struct sway_view *view, |
41 | struct sway_view *view); | 41 | bool whole); |
42 | 42 | ||
43 | void output_damage_whole_container(struct sway_output *output, | 43 | void output_damage_whole_container(struct sway_output *output, |
44 | struct sway_container *con); | 44 | struct sway_container *con); |
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index 611c4f0b..b51c54b5 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h | |||
@@ -157,9 +157,7 @@ void view_set_activated(struct sway_view *view, bool activated); | |||
157 | 157 | ||
158 | void view_close(struct sway_view *view); | 158 | void view_close(struct sway_view *view); |
159 | 159 | ||
160 | void view_damage_whole(struct sway_view *view); | 160 | void view_damage(struct sway_view *view, bool whole); |
161 | |||
162 | void view_damage_from(struct sway_view *view); | ||
163 | 161 | ||
164 | void view_for_each_surface(struct sway_view *view, | 162 | void view_for_each_surface(struct sway_view *view, |
165 | wlr_surface_iterator_func_t iterator, void *user_data); | 163 | wlr_surface_iterator_func_t iterator, void *user_data); |