From 85f8dda6de28ef86e58f26c8aa863a26524f6ce0 Mon Sep 17 00:00:00 2001 From: Jesse Gibbons Date: Sun, 9 Feb 2020 21:46:26 -0700 Subject: [PATCH] Fix mouse/touch event hints for SDL 2.0.10. This fixes the bug reported at . It should remain backwards compatible with releases of SDL prior to 2.0.10. --- src/input.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/input.cpp b/src/input.cpp index b5ae21e..153d349 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -91,7 +91,12 @@ void input_init(void) // TODO: don't attempt to simulate mouse events from touch events - // fake mouse events often are de-centered +#ifdef SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH SDL_SetHint(SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH, "0"); +#elif defined SDL_HINT_MOUSE_TOUCH_EVENTS && defined SDL_HINT_TOUCH_MOUSE_EVENTS + SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "0"); + SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0"); +#endif /* Touch devices */ { -- 2.25.0 href='/guix/'>summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-04-14daemon: Support systemd-style socket activation.Ludovic Courtès
* nix/nix-daemon/guix-daemon.cc (SD_LISTEN_FDS_START): New macro. (systemd_activation_sockets): New function. (main): Use it. Remove obsolete 'printMsg' call. * doc/guix.texi (Invoking guix-daemon): Document socket activation.
2021-04-03daemon: Remove dead code.Ludovic Courtès
Reported by Noisytoot on #guix. * nix/nix-daemon/shared.hh (showManPage): Remove. * nix/nix-daemon/nix-daemon.cc (printHelp, programId): Remove.
2021-03-17daemon: Correctly handle '--discover' with no value.Ludovic Courtès
Previously, we'd get: $ guix-daemon --discover error: basic_string::_M_construct null not valid * nix/nix-daemon/guix-daemon.cc (parse_opt): Change second argument to 'settings.set' to properly handle case where ARG is NULL.
2020-11-29Use substitute servers on the local network.Mathieu Othacehe
* guix/scripts/discover.scm: New file. * Makefile.am (MODULES): Add it. * nix/nix-daemon/guix-daemon.cc (options): Add "discover" option, (parse-opt): parse it, (main): start "guix discover" process when the option is set. * guix/scripts/substitute.scm (%local-substitute-urls): New variable, (substitute-urls): add it. * gnu/services/base.scm (<guix-configuration>): Add "discover?" field, (guix-shepherd-service): honor it. * doc/guix.texi (Invoking guix-daemon): Document "discover" option, (Base Services): ditto.