Center the build window when it opens

It would be nice if, when you press the build and launch button, it opens the window in the center of the monitor where Defold is active.

Right now it opens in the far left of the leftmost monitor. I can of course just move it, but it’s always a minor annoyance, especially when if I accidentally drag it to the top of the screen, it will maximize (on Windows)

3 Likes

This is very annoying issue.

Add the DefOS extension to your project, then place the following code in the init function of a script in your main collection. This should center the window:

local _, _, w, h = defos.get_window_size()
defos.set_window_size(nil, nil, w, h)
4 Likes