SDL/src/video
Sam Lantinga 59d34bc35d Fixed bug 3015 - grab mouse inconsistent state
Martin Gerhardy

Not sure - but I think there might be a logic flaw in SDL_SetWindowGrab.

The problem here is that this modifies the window flags and e.g. sets
SDL_WINDOW_INPUT_GRABBED - but the _this->grabbed_window pointer is not
yet set.

Then in SDL_UpdateWindowGrab the _this->grabbed_window pointer is only
set if the function pointer _this->SetWindowGrab is not NULL. But if
this is NULL, the _this->grabbed_window pointer is never set, but every
future call to any of the grab functions include an assert for:
SDL_assert(!_this->grabbed_window || ((_this->grabbed_window->flags &
SDL_WINDOW_INPUT_GRABBED) != 0));

That means the first call works, the second always fails and triggers
the assert.
2015-06-15 23:44:08 -07:00
..
android Android: Changed two unknown keys to be consistent with Windows and X11 mapping. 2015-05-31 19:22:42 +02:00
cocoa Backout commit 83034612a883 2015-06-04 02:12:06 -04:00
directfb Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
dummy Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
emscripten Emscripten: Fixed SDL_GetTouchDevice() returning 0 for the valid device index. 2015-06-09 21:06:29 +02:00
haiku Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
mir Fixed comments at conditional compilation macros. 2015-06-05 19:41:18 +02:00
nacl Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
pandora Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
psp Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
raspberry RPi: Patched to compile without OpenGL (thanks, Simon!), other cleanups. 2015-06-06 22:45:22 -04:00
uikit iOS: Fixed some cases where SDL_DestroyWindow or SDL_GL_DeleteContext can cause crashes. 2015-06-09 21:08:24 -03:00
vivante Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
wayland Wayland: Fixed SDL_GetTouchDevice() returning 0 for the valid device index. 2015-06-09 21:06:55 +02:00
windows Implement repositioning the OS-rendered IME with SDL_SetTextInputRect on Windows. 2015-06-15 20:24:51 -07:00
winrt Fixed comments at conditional compilation macros. 2015-06-05 19:41:18 +02:00
x11 Fixed bug 3010 - SDL_x11messagebox.c needs including X11/keysym.h 2015-06-13 13:34:30 -07:00
SDL_blit.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_blit.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_blit_0.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_blit_1.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_blit_A.c Fixed comments at conditional compilation macros. 2015-06-05 19:41:18 +02:00
SDL_blit_auto.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_blit_auto.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_blit_copy.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_blit_copy.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_blit_N.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_blit_slow.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_blit_slow.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_bmp.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_clipboard.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_egl.c EGL: OpenGL ES 3.0 contexts can now be created without the EGL_KHR_create_context extension. 2015-05-26 19:34:56 -03:00
SDL_egl_c.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_fillrect.c Fixed swizzle of SDL_FillRect() on 24-bit surface (thanks, "nagydavid91"!). 2015-05-31 11:38:10 -04:00
SDL_pixels.c VS2005 tweaks (thanks, Ozkan!). 2015-06-07 19:58:42 -04:00
SDL_pixels_c.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_rect.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_rect_c.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_RLEaccel.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_RLEaccel_c.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_shape.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_shape_internals.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_stretch.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_surface.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_sysvideo.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_video.c Fixed bug 3015 - grab mouse inconsistent state 2015-06-15 23:44:08 -07:00
sdlgenblit.pl Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00