From 474f4984f8be450524eedd3e89bcbfdfa1b4f516 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Tue, 3 Mar 2026 14:29:13 -0500 Subject: fix compiler errors --- win/win.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'win') diff --git a/win/win.go b/win/win.go index 06f3f68..4040f94 100644 --- a/win/win.go +++ b/win/win.go @@ -9,6 +9,7 @@ import ( "unsafe" "github.com/faiface/gui" + "github.com/faiface/gui/lay/strain" "github.com/faiface/mainthread" "github.com/go-gl/gl/v2.1/gl" "github.com/go-gl/glfw/v3.2/glfw" @@ -23,7 +24,7 @@ type Win struct { eventsOut <-chan gui.Event eventsIn chan<- gui.Event draw chan func(draw.Image) image.Rectangle - impose chan gui.Constraint + impose chan strain.Constraint newSize chan image.Rectangle ctx context.Context @@ -56,7 +57,7 @@ func New(opts ...Option) (*Win, error) { eventsOut: eventsOut, eventsIn: eventsIn, draw: make(chan func(draw.Image) image.Rectangle), - impose: make(chan gui.Constraint), + impose: make(chan strain.Constraint), newSize: make(chan image.Rectangle), ctx: ctx, cancel: cancel, @@ -136,7 +137,7 @@ func (w *Win) Draw() chan<- func(draw.Image) image.Rectangle { return w.draw } // Impose returns the impose channel of the window. // The window ignores constraints sent to the impose channel. -func (w *Win) Impose() chan<- gui.Constraint { return w.impose } +func (w *Win) Impose() chan<- strain.Constraint { return w.impose } // Close destroys the window. func (w *Win) Close() { -- cgit v1.2.3