diff options
Diffstat (limited to 'sway/desktop/desktop.c')
-rw-r--r-- | sway/desktop/desktop.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/desktop/desktop.c b/sway/desktop/desktop.c index d8dd0240..ec45d80a 100644 --- a/sway/desktop/desktop.c +++ b/sway/desktop/desktop.c | |||
@@ -6,8 +6,10 @@ void desktop_damage_surface(struct wlr_surface *surface, double lx, double ly, | |||
6 | bool whole) { | 6 | bool whole) { |
7 | for (int i = 0; i < root->outputs->length; ++i) { | 7 | for (int i = 0; i < root->outputs->length; ++i) { |
8 | struct sway_output *output = root->outputs->items[i]; | 8 | struct sway_output *output = root->outputs->items[i]; |
9 | output_damage_surface(output, lx - output->wlr_output->lx, | 9 | struct wlr_box *output_box = wlr_output_layout_get_box( |
10 | ly - output->wlr_output->ly, surface, whole); | 10 | root->output_layout, output->wlr_output); |
11 | output_damage_surface(output, lx - output_box->x, | ||
12 | ly - output_box->y, surface, whole); | ||
11 | } | 13 | } |
12 | } | 14 | } |
13 | 15 | ||