From cbe0fd63bfbe3cddec158970e9e8263691eed71b Mon Sep 17 00:00:00 2001 From: Guldoman Date: Sun, 21 Aug 2022 19:08:32 +0200 Subject: [PATCH] Reduce double click radius SDL uses 32 pixels by default, which is a bit too much and causes problems with, for example, adding multiple close selections too quickly. --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.c b/src/main.c index 2f44d7c9..1b57f93e 100644 --- a/src/main.c +++ b/src/main.c @@ -117,6 +117,9 @@ int main(int argc, char **argv) { ** It also enables aero-snap on Windows apparently. */ SDL_SetHint("SDL_BORDERLESS_RESIZABLE_STYLE", "1"); #endif +#if SDL_VERSION_ATLEAST(2, 0, 9) + SDL_SetHint("SDL_MOUSE_DOUBLE_CLICK_RADIUS", "4"); +#endif SDL_DisplayMode dm; SDL_GetCurrentDisplayMode(0, &dm);