diff options
author | Erik Reider <35975961+ErikReider@users.noreply.github.com> | 2023-05-20 15:04:11 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-05-20 16:56:25 +0200 |
commit | 48d6eda3cb0f79d2190756af44f01d028696bf0e (patch) | |
tree | 6ca4574401520c7e83b2780590feeef66d489f17 | |
parent | seatop_down: Call seatop_begin_default after sending touch events (diff) | |
download | sway-48d6eda3cb0f79d2190756af44f01d028696bf0e.tar.gz sway-48d6eda3cb0f79d2190756af44f01d028696bf0e.tar.zst sway-48d6eda3cb0f79d2190756af44f01d028696bf0e.zip |
Fix layer old damage not being offset by the monitor layout coords
-rw-r--r-- | sway/desktop/layer_shell.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c index e16bee78..cf795dc7 100644 --- a/sway/desktop/layer_shell.c +++ b/sway/desktop/layer_shell.c | |||
@@ -312,6 +312,8 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) { | |||
312 | bool extent_changed = | 312 | bool extent_changed = |
313 | memcmp(&old_extent, &layer->extent, sizeof(struct wlr_box)) != 0; | 313 | memcmp(&old_extent, &layer->extent, sizeof(struct wlr_box)) != 0; |
314 | if (extent_changed || layer_changed) { | 314 | if (extent_changed || layer_changed) { |
315 | old_extent.x += output->lx; | ||
316 | old_extent.y += output->ly; | ||
315 | output_damage_box(output, &old_extent); | 317 | output_damage_box(output, &old_extent); |
316 | output_damage_surface(output, layer->geo.x, layer->geo.y, | 318 | output_damage_surface(output, layer->geo.x, layer->geo.y, |
317 | layer_surface->surface, true); | 319 | layer_surface->surface, true); |