diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-26 23:13:09 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-03-27 18:50:32 -0400 |
commit | 776b81d499ae4430c0ebe5421b119c6b3355a1ce (patch) | |
tree | 4baf0e29c987f337f3548ef28e582469b9ed9001 /rootston/output.c | |
parent | e841e5602b9fb7447564f75fc9d1e835a215e51a (diff) |
Fix surface layer damage tracking
Diffstat (limited to 'rootston/output.c')
-rw-r--r-- | rootston/output.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rootston/output.c b/rootston/output.c index 7c2c6d44..aa74c8d7 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -664,6 +664,14 @@ static void damage_whole_surface(struct wlr_surface *surface, wlr_output_damage_add_box(output->damage, &box); } +void output_damage_whole_local_surface(struct roots_output *output, + struct wlr_surface *surface, double ox, double oy, float rotation) { + struct wlr_output_layout_output *layout = wlr_output_layout_get( + output->desktop->layout, output->wlr_output); + damage_whole_surface(surface, ox + layout->x, oy + layout->y, + rotation, output); +} + static void damage_whole_decoration(struct roots_view *view, struct roots_output *output) { if (!view->decorated || view->wlr_surface == NULL) { |