ebiten icon indicating copy to clipboard operation
ebiten copied to clipboard

ebiten: Allow SetWindowDecorated or other functions on the native fullscreen mode on macOS

Open hajimehoshi opened this issue 5 years ago • 4 comments

Just remembering the state should be fine.

  • SetWindowDecorated
  • SetWindowResizable
  • SetWindowFloating
  • SetWindowSize

hajimehoshi avatar Apr 18 '21 14:04 hajimehoshi

This causes incompatible behaviors between 2.1 and 2.2. As we have not released 2.1 yet, we can change the current behavior (doing nothing).

  1. Causing panics or errors: The problem is that an Ebiten user cannot detect the native fullscreen state, then this is not predictable.
  2. Implement this for 2.1: The problem is that back porting to 1.12 and 2.0 will be significant amount.

For example, as resizing state can be detected by IsWindowResizable, probably it would be fine to add this little breaking change.

hajimehoshi avatar Apr 18 '21 16:04 hajimehoshi

Revisit this later.

hajimehoshi avatar Sep 12 '21 14:09 hajimehoshi

This (especially SetWindowSize) seems pretty trickier than I expected. Let me defer this.

hajimehoshi avatar Apr 08 '22 09:04 hajimehoshi

Note to myself

  • origWindowPosX/Y is NOT updated when the window is dragged. This is different from windowWidth/HeightInDIP. I think we should make these parameters consistent by using GLFW callbacks.
  • As there is a plan to rewrite GLFW part in pure Go for Windows, the situation might be different in the near future.

hajimehoshi avatar Apr 08 '22 09:04 hajimehoshi