From 86587a9328800189f6b4b6c6a13c49c084a588b0 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 21 Nov 2023 17:30:33 +0100 Subject: [PATCH] subsurface: Don't marka failure as success There was one branch in the success case that turned it into a failure, yet we were still reporting a success (and discarding the buffer). Don't do that. --- gdk/wayland/gdksubsurface-wayland.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdk/wayland/gdksubsurface-wayland.c b/gdk/wayland/gdksubsurface-wayland.c index de4b298b60..2e92cca374 100644 --- a/gdk/wayland/gdksubsurface-wayland.c +++ b/gdk/wayland/gdksubsurface-wayland.c @@ -213,6 +213,7 @@ gdk_wayland_subsurface_attach (GdkSubsurface *sub, self, self->dest.x, self->dest.y, self->dest.width, self->dest.height); + result = TRUE; } else { @@ -233,8 +234,8 @@ gdk_wayland_subsurface_attach (GdkSubsurface *sub, self, self->dest.x, self->dest.y, self->dest.width, self->dest.height); + result = TRUE; } - result = TRUE; } if (result)