SaveTool: make the clickthrough hint have priority.

This commit is contained in:
Guillaume Jacquemin 2022-01-15 13:26:12 +01:00
parent 13d09e4aa0
commit 1ec4522baf

View file

@ -62,7 +62,7 @@ SaveTool::SaveTool(const Arguments& arguments):
#endif
if(SDL_VERSION_ATLEAST(2, 0, 5)) {
if(SDL_SetHint(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, "1") == SDL_TRUE) {
if(SDL_SetHintWithPriority(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, "1", SDL_HINT_OVERRIDE) == SDL_TRUE) {
Utility::Debug{} << "Clickthrough is available.";
}
else {