app: remove defer op in window decorate

Fixes: https://todo.sr.ht/~eliasnaur/gio/361
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
Pierre Curto
2022-02-18 16:32:04 +01:00
committed by Elias Naur
parent 42ea56ac44
commit 20d4bc21d5
-2
View File
@@ -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.