Collapse identical SDL2/SDL3 arms in local mouse focus()

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
(cherry picked from commit 12d98c2202)
This commit is contained in:
Matthew Stanley
2026-10-04 10:52:32 -07:00
parent f7ca7237cd
commit c00a09e556
-4
View File
@@ -62,11 +62,7 @@ psx::LocalMousePolicy& state() {
bool focus() {
if (!window_ || SDL_GetKeyboardFocus() != window_) return false;
const auto flags = SDL_GetWindowFlags(window_);
#if defined(PSX_SDL3)
return (flags & (SDL_WINDOW_HIDDEN | SDL_WINDOW_MINIMIZED)) == 0;
#else
return (flags & (SDL_WINDOW_HIDDEN | SDL_WINDOW_MINIMIZED)) == 0;
#endif
}
bool conflict() {
const SDL_Scancode sc = scancode(state().hold_control());