mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
love.window.isVisible also checks if the window is minimized.
This commit is contained in:
@@ -1295,7 +1295,7 @@ bool Window::hasMouseFocus() const
|
||||
|
||||
bool Window::isVisible() const
|
||||
{
|
||||
return window && (SDL_GetWindowFlags(window) & SDL_WINDOW_HIDDEN) == 0;
|
||||
return window && (SDL_GetWindowFlags(window) & (SDL_WINDOW_HIDDEN | SDL_WINDOW_MINIMIZED)) == 0;
|
||||
}
|
||||
|
||||
void Window::setMouseGrab(bool grab)
|
||||
|
||||
Reference in New Issue
Block a user