ebiten: Regression: invisible window, wrong fullscreen size

On my system (Linux/Sway/XWayland), 77664ff0575c8f51e1ba5cd3604a57808fbf95f4 causes a regression:

  • Before the commit, Ebiten windows get created on the correct screen and get centered correctly.
  • After the commit, I don’t get any visible window, and in fullscreen it displays too small in the bottom left corner.

Commenting out the initializeWindowAfterCreation(window) in createWindow() fixes it, although I do not yet know why. What the function does looks reasonable to me (other than the window being way too small, 16x16).

Checking with xwininfo reveals that the window actually gets created but outside the visible area of my dual screen setup. Fullscreen oddly uses the wrong size.

I suggest backing out the commit for now, unless it fixes similar issues on other systems. Or maybe have it temporarily controlled by an environment variable until fixed for good?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 41 (41 by maintainers)

Commits related to this issue

Most upvoted comments

Yeah. I still am trying to figure out why we get 0, 0 the first few calls. This seems wrong.