Change SDL_SetCursor to set the cursor back to the default cursor when the

window is unfocused.
This commit is contained in:
Wim Looman 2012-02-03 23:53:51 +13:00
parent 0da1c5b3ae
commit b7f2ad8ad0
3 changed files with 12 additions and 12 deletions

View file

@ -465,7 +465,11 @@ SDL_SetCursor(SDL_Cursor * cursor)
}
mouse->cur_cursor = cursor;
} else {
cursor = mouse->cur_cursor;
if (mouse->focus) {
cursor = mouse->cur_cursor;
} else {
cursor = mouse->def_cursor;
}
}
if (cursor && mouse->cursor_shown && !mouse->relative_mode) {