Skip to content

Commit

Permalink
love.window.isVisible also checks if the window is minimized.
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Oct 19, 2024
1 parent d2d8792 commit d3cd2ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/window/sdl/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d3cd2ae

Please sign in to comment.