summaryrefslogtreecommitdiff
path: root/src/video/SDL_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/video/SDL_video.c')
-rw-r--r--src/video/SDL_video.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index 33bf5337a..7c5b8191a 100644
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -2652,8 +2652,8 @@ SDL_UpdateWindowGrab(SDL_Window * window)
if (grabbed_window && (grabbed_window != window)) {
/* stealing a grab from another window! */
grabbed_window->flags &= ~SDL_WINDOW_INPUT_GRABBED;
- if (_this->SetWindowGrab) {
- _this->SetWindowGrab(_this, grabbed_window, SDL_FALSE);
+ if (_this->SetWindowMouseGrab) {
+ _this->SetWindowMouseGrab(_this, grabbed_window, SDL_FALSE);
}
if (_this->SetWindowKeyboardGrab) {
_this->SetWindowKeyboardGrab(_this, grabbed_window, SDL_FALSE);
@@ -2664,8 +2664,8 @@ SDL_UpdateWindowGrab(SDL_Window * window)
_this->grabbed_window = NULL; /* ungrabbing. */
}
- if (_this->SetWindowGrab) {
- _this->SetWindowGrab(_this, window, grabbed);
+ if (_this->SetWindowMouseGrab) {
+ _this->SetWindowMouseGrab(_this, window, grabbed);
}
if (_this->SetWindowKeyboardGrab) {
if (grabbed && SDL_GetHintBoolean(SDL_HINT_GRAB_KEYBOARD, SDL_FALSE)) {