ebiten icon indicating copy to clipboard operation
ebiten copied to clipboard

An application suspends when the application is minimized on Linux

Open hajimehoshi opened this issue 4 years ago • 7 comments

When an application is minimized, RestoreWindow doesn't work.

Is really the application working when the application is minimized?

hajimehoshi avatar Sep 24 '21 17:09 hajimehoshi

OK it looks like the application stops when the application is minimized (i.e. iconified).

hajimehoshi avatar Sep 24 '21 17:09 hajimehoshi

Could this be related to the issue I raised?

arran4 avatar Oct 09 '21 06:10 arran4

This is an issue in X, and I don't think this is related to #1844

hajimehoshi avatar Oct 09 '21 06:10 hajimehoshi

The steps to reproduce this issue

  1. go run -tags=example ./examples/windowsize -autorestore
  2. Minimize the window

Expected: the window is restored automatically Actual: the window is never restored

hajimehoshi avatar Apr 08 '22 10:04 hajimehoshi

Apparently, the game's Update works, but RestoreWindow never returns 🤔

hajimehoshi avatar Apr 08 '22 10:04 hajimehoshi

                for u.window.GetAttrib(glfw.Maximized) == glfw.True || u.window.GetAttrib(glfw.Iconified) == glfw.True {
                        glfw.PollEvents()
                }

After u.window.Restore(), this loop never ends 🤔

hajimehoshi avatar Apr 08 '22 10:04 hajimehoshi

This is an external issue: glfw/glfw#2077

hajimehoshi avatar Apr 08 '22 12:04 hajimehoshi