~sircmpwn/hare-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH hari] Fix crash on surface_leave

Details
Message ID
<20240715081623.1171-2-contact@willowbarraco.fr>
DKIM signature
pass
Download raw message
Patch: +1 -1
The migration to for-loop was incorrect here.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
---
 hari/wayland/surface.ha | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hari/wayland/surface.ha b/hari/wayland/surface.ha
index d9240ba..bea60e0 100644
--- a/hari/wayland/surface.ha
+++ b/hari/wayland/surface.ha
@@ -73,7 +73,7 @@ fn surface_leave(
	output: u32,
) void = {
	let surf = user: *surface;
	for (let i .. surf.outputs) {
	for (let i = 0z; i < len(surf.outputs); i += 1) {
		if (surf.outputs[i] == output) {
			delete(surf.outputs[i]);
			break;
-- 
2.45.2
Details
Message ID
<D2PZDW1R59HD.3DZJHBLW0QCFO@cmpwn.com>
In-Reply-To
<20240715081623.1171-2-contact@willowbarraco.fr> (view parent)
DKIM signature
pass
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/hari
   50a0105..  master -> master
Reply to thread Export thread (mbox)