Amethyst’s window will emit these events when window state changes

window:maximize

Emits when the window is maximized

amethyst.on("window:maximize");

window:unmaximize

Emits when the window is unmaximized

amethyst.on("window:unmaximize");

window:minimize

Emits when the window is minimized

amethyst.on("window:minimize");

window:focus

Emits when the window is focused

amethyst.on("window:focus");

window:unfocus

Emits when the window is unfocused

amethyst.on("window:unfocus");