Browse Source

haiku: mouse_relative fix

Partially fixes Bugzilla #4442.
Peter Kosyh 5 years ago
parent
commit
33ae5e5e99
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/main/haiku/SDL_BApp.h

+ 1 - 3
src/main/haiku/SDL_BApp.h

@@ -230,9 +230,7 @@ private:
         win = GetSDLWindow(winID);
 
 		// Simple relative mode support for mouse.
-		if ((SDL_GetMouse()->relative_mode ||
-			(win->flags & SDL_WINDOW_INPUT_GRABBED)) &&
-			(win->flags & SDL_WINDOW_INPUT_FOCUS)) {
+		if (SDL_GetMouse()->relative_mode) {
 			int winWidth, winHeight, winPosX, winPosY;
 			SDL_GetWindowSize(win, &winWidth, &winHeight);
 			SDL_GetWindowPosition(win, &winPosX, &winPosY);