Open venning opened 11 months ago
Does this cause crashes?
No crashes. I notice no unusual behavior except for the console logs.
Edit: If I wasn't clear in my original post, multiple actions like entering/exiting fullscreen or switching workspaces will result in additional outputs to the console.
A new addition to the logs:
2024-01-01 05:02:00.660 proc[77893:5775086] IMKClient Stall detected, *please Report* your user scenario attaching a spindump (or sysdiagnose) that captures the problem - (imkxpc_bundleIdentifierWithReply:) block performed very slowly (1.01 secs).
Ebitengine Version
v2.6.2
Operating System
Go Version (
go version
)go version go1.21.1 darwin/arm64
What steps will reproduce the problem?
A call to
ebiten.SetFullscreen()
passing eithertrue
orfalse
.The output will also repeat if I
Alt-Tab
from the fullscreen game to or from another application on the same monitor, but not a different monitor. Switching workspaces on that monitor does the same.Test case code (Press F to toggle fullscreen in-game)
go package main import ( "github.com/hajimehoshi/ebiten/v2" "github.com/hajimehoshi/ebiten/v2/inpututil" ) type Game struct { } var fullscreen = false func (g *Game) Update() error { if inpututil.IsKeyJustPressed(ebiten.KeyF) { fullscreen = !fullscreen ebiten.SetFullscreen(fullscreen) } return nil } func (g *Game) Draw(screen *ebiten.Image) { } func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) { return 960, 540 } func main() { ebiten.SetWindowSize(960, 540) ebiten.SetWindowTitle("Fullscreen Test") ebiten.RunGame(&Game{}) }What is the expected result?
No output to console.
What happens instead?
Something like the following message is output to console when I enter fullscreen:
Here's a workspace change on that monitor:
Anything else you feel useful to add?
macOS Ventura 13.1 Apple M1 Pro; 14-inch, 2021