sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 48d6eda3cb0f79d2190756af44f01d028696bf0e
parent 01b0c11394b88fea2ec8ac691e30504f1e0800f5
Author: Erik Reider <35975961+ErikReider@users.noreply.github.com>
Date:   Sat, 20 May 2023 15:04:11 +0200

Fix layer old damage not being offset by the monitor layout coords

Diffstat:
Msway/desktop/layer_shell.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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) { bool extent_changed = memcmp(&old_extent, &layer->extent, sizeof(struct wlr_box)) != 0; if (extent_changed || layer_changed) { + old_extent.x += output->lx; + old_extent.y += output->ly; output_damage_box(output, &old_extent); output_damage_surface(output, layer->geo.x, layer->geo.y, layer_surface->surface, true);