From 20d4bc21d595f7566570a556f9a73cca3254fcb3 Mon Sep 17 00:00:00 2001 From: Pierre Curto Date: Fri, 18 Feb 2022 16:32:04 +0100 Subject: [PATCH] app: remove defer op in window decorate Fixes: https://todo.sr.ht/~eliasnaur/gio/361 Signed-off-by: Pierre Curto --- app/window.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/window.go b/app/window.go index ba9832ee..87e48639 100644 --- a/app/window.go +++ b/app/window.go @@ -890,9 +890,7 @@ func (w *Window) decorate(d driver, e system.FrameEvent, o *op.Ops) image.Point Metric: e.Metric, Constraints: layout.Exact(e.Size), } - rec := op.Record(o) dims := style.Layout(gtx) - op.Defer(o, rec.Stop()) // Update the window based on the actions on the decorations. w.Perform(deco.Actions()) // Offset to place the frame content below the decorations.