love.window.isVisible
Checks if the game window is visible.

The window is considered visible if it's not minimized and the program isn't hidden.
visible = love.window.isVisible()
visible boolean True if the window is visible or false if not.