summaryrefslogtreecommitdiff
path: root/sway/desktop/desktop.c
diff options
context:
space:
mode:
authorWill McKinnon <[email protected]>2022-08-15 00:54:07 -0400
committerWill McKinnon <[email protected]>2022-08-15 00:54:07 -0400
commit7b530bf4487f36273938ffd7236dad8a7629790a (patch)
tree0c5cdceb7fbda31530d2d32388db8e27f67748a0 /sway/desktop/desktop.c
parentcf1ed777ae56f677bcc0f832c52c04dc65be18ce (diff)
Revert "merge sway master"
This reverts commit 7460d9f565092836f81b917a040caff57142d91a.
Diffstat (limited to 'sway/desktop/desktop.c')
-rw-r--r--sway/desktop/desktop.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sway/desktop/desktop.c b/sway/desktop/desktop.c
index c8d4502c..ec45d80a 100644
--- a/sway/desktop/desktop.c
+++ b/sway/desktop/desktop.c
@@ -6,11 +6,10 @@ void desktop_damage_surface(struct wlr_surface *surface, double lx, double ly,
bool whole) {
for (int i = 0; i < root->outputs->length; ++i) {
struct sway_output *output = root->outputs->items[i];
- struct wlr_box output_box;
- wlr_output_layout_get_box(root->output_layout,
- output->wlr_output, &output_box);
- output_damage_surface(output, lx - output_box.x,
- ly - output_box.y, surface, whole);
+ struct wlr_box *output_box = wlr_output_layout_get_box(
+ root->output_layout, output->wlr_output);
+ output_damage_surface(output, lx - output_box->x,
+ ly - output_box->y, surface, whole);
}
}