Skip to content

Commit

Permalink
ffi/SDL2: work around touch issue in SDL 2.0.22
Browse files Browse the repository at this point in the history
  • Loading branch information
Frenzie committed Jun 12, 2022
1 parent 7548930 commit 803158a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ffi/SDL2_0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ function S.open(w, h, x, y)
S.h = tonumber(os.getenv("EMULATE_READER_H")) or h or 800
end

-- Disable to work around an SDL issue in 2.0.22.
-- See <https://github.com/libsdl-org/SDL/issues/5652> and <https://github.com/koreader/koreader/issues/9091>.
SDL.SDL_SetHint("SDL_HINT_TOUCH_MOUSE_EVENTS", "0")

-- Enable screensaver and X11 composition.
SDL.SDL_EnableScreenSaver()
if SDL_Linked_Version_AtLeast(2, 0, 8) then
Expand Down

0 comments on commit 803158a

Please sign in to comment.