haiku: mouse_relative fix
authorPeter Kosyh <p.kosyh@gmail.com>
Mon, 11 Nov 2019 22:23:33 -0500
changeset 13237f5298e605071
parent 13236 00da92ddae19
child 13238 007002587d5d
haiku: mouse_relative fix

Partially fixes Bugzilla #4442.
src/main/haiku/SDL_BApp.h
     1.1 --- a/src/main/haiku/SDL_BApp.h	Mon Nov 11 22:22:40 2019 -0500
     1.2 +++ b/src/main/haiku/SDL_BApp.h	Mon Nov 11 22:23:33 2019 -0500
     1.3 @@ -230,9 +230,7 @@
     1.4          win = GetSDLWindow(winID);
     1.5  
     1.6  		// Simple relative mode support for mouse.
     1.7 -		if ((SDL_GetMouse()->relative_mode ||
     1.8 -			(win->flags & SDL_WINDOW_INPUT_GRABBED)) &&
     1.9 -			(win->flags & SDL_WINDOW_INPUT_FOCUS)) {
    1.10 +		if (SDL_GetMouse()->relative_mode) {
    1.11  			int winWidth, winHeight, winPosX, winPosY;
    1.12  			SDL_GetWindowSize(win, &winWidth, &winHeight);
    1.13  			SDL_GetWindowPosition(win, &winPosX, &winPosY);