Skip to content

Commit

Permalink
Merge pull request #5421 from Jacalz/clear-pending-ops-after-start
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz authored Jan 16, 2025
2 parents 5a4731e + aa18bf7 commit 334b6b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions internal/driver/glfw/window_desktop.go
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,7 @@ func (w *window) create() {
for _, fn := range w.pending {
fn()
}
w.pending = nil

if w.FixedSize() && (w.requestedWidth == 0 || w.requestedHeight == 0) {
bigEnough := w.canvas.canvasSize(w.canvas.Content().MinSize())
Expand Down
3 changes: 1 addition & 2 deletions internal/driver/glfw/window_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1746,9 +1746,8 @@ func TestWindow_SetContent_Twice(t *testing.T) {
}

func TestWindow_SetFullScreen(t *testing.T) {
var w *window
runOnMain(func() { // tests launch in a different context
w = d.CreateWindow("Full").(*window)
w := d.CreateWindow("Full").(*window)
w.SetFullScreen(true)
w.create()

Expand Down

0 comments on commit 334b6b4

Please sign in to comment.