mirror of
https://github.com/glest/glest-source.git
synced 2025-10-01 18:06:44 +02:00
- bugfixes related to SDL library upgrade on windows build and mouse cursor toggling (especially that stupid windows 7 issue where alt-tab doesn't let you move your cursor in fullscreen mode)
For reference: http://bugzilla.libsdl.org/show_bug.cgi?id=849
This commit is contained in:
@@ -219,7 +219,7 @@ bool Window::handleEvent() {
|
||||
}
|
||||
*/
|
||||
// Check if the program has lost window focus
|
||||
if (event.active.state == SDL_APPACTIVE) {
|
||||
if (event.active.state & SDL_APPACTIVE == SDL_APPACTIVE) {
|
||||
if (event.active.gain == 0) {
|
||||
Window::isActive = false;
|
||||
}
|
||||
@@ -249,9 +249,9 @@ bool Window::handleEvent() {
|
||||
showCursor(willShowCursor);
|
||||
}
|
||||
*/
|
||||
if (event.active.state != SDL_APPMOUSEFOCUS &&
|
||||
event.active.state != SDL_APPINPUTFOCUS &&
|
||||
event.active.state != SDL_APPACTIVE) {
|
||||
if (event.active.state & SDL_APPMOUSEFOCUS != SDL_APPMOUSEFOCUS &&
|
||||
event.active.state & SDL_APPINPUTFOCUS != SDL_APPINPUTFOCUS &&
|
||||
event.active.state & SDL_APPACTIVE != SDL_APPACTIVE) {
|
||||
if (event.active.gain == 0) {
|
||||
Window::isActive = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user