set sdl window to not grab mouse. this seems to be unnecessary most of the time, but not always.

This commit is contained in:
payonel 2015-09-03 19:28:56 -07:00
parent c1e8835b82
commit 8c548cfc3d

View File

@ -102,6 +102,8 @@ local window, renderer, texture, copytexture
local function createWindow()
if not window then
window = SDL.createWindow("OCEmu - screen@" .. address, SDL.WINDOWPOS_CENTERED, SDL.WINDOWPOS_CENTERED, width*8, height*16, SDL.WINDOW_SHOWN)
SDL.setWindowGrab(window, SDL.FALSE)
if window == ffi.C.NULL then
error(ffi.string(SDL.getError()))
end