mirror of
https://github.com/yawut/SDL.git
synced 2026-06-24 13:30:54 -05:00
On multi-display systems it's perfectly reasonable to have focus on a window on another monitor while the application is fullscreen.
This commit is contained in:
parent
147d40ba98
commit
932374c12d
|
|
@ -147,7 +147,6 @@ struct SDL_Window
|
|||
#define FULLSCREEN_VISIBLE(W) \
|
||||
(((W)->flags & SDL_WINDOW_FULLSCREEN) && \
|
||||
((W)->flags & SDL_WINDOW_SHOWN) && \
|
||||
((W)->flags & SDL_WINDOW_INPUT_FOCUS) && \
|
||||
!((W)->flags & SDL_WINDOW_MINIMIZED))
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -1435,7 +1435,6 @@ SDL_OnWindowFocusGained(SDL_Window * window)
|
|||
{
|
||||
SDL_VideoDisplay *display = SDL_GetDisplayFromWindow(window);
|
||||
|
||||
SDL_UpdateFullscreenMode(window, SDL_TRUE);
|
||||
if (display->gamma && _this->SetDisplayGammaRamp) {
|
||||
_this->SetDisplayGammaRamp(_this, display, display->gamma);
|
||||
}
|
||||
|
|
@ -1450,7 +1449,6 @@ SDL_OnWindowFocusLost(SDL_Window * window)
|
|||
{
|
||||
SDL_VideoDisplay *display = SDL_GetDisplayFromWindow(window);
|
||||
|
||||
SDL_UpdateFullscreenMode(window, SDL_FALSE);
|
||||
if (display->gamma && _this->SetDisplayGammaRamp) {
|
||||
_this->SetDisplayGammaRamp(_this, display, display->saved_gamma);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user