mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user