From 8c548cfc3ddfc45a717730d91be7b2d642420f65 Mon Sep 17 00:00:00 2001 From: payonel Date: Thu, 3 Sep 2015 19:28:56 -0700 Subject: [PATCH] set sdl window to not grab mouse. this seems to be unnecessary most of the time, but not always. --- src/component/screen_sdl2.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/component/screen_sdl2.lua b/src/component/screen_sdl2.lua index 64b3d99..bdec8dd 100644 --- a/src/component/screen_sdl2.lua +++ b/src/component/screen_sdl2.lua @@ -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