Set SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH
This commit is contained in:
parent
cc05925d9e
commit
9edb6effa6
2 changed files with 10 additions and 1 deletions
|
|
@ -52,6 +52,11 @@ http://www.tuxpaint.org/
|
||||||
Pere Pujal i Carabantes <perepujal@gmail.com>
|
Pere Pujal i Carabantes <perepujal@gmail.com>
|
||||||
Closes https://sourceforge.net/p/tuxpaint/bugs/256/
|
Closes https://sourceforge.net/p/tuxpaint/bugs/256/
|
||||||
|
|
||||||
|
* Receive clicks when Tux Paint window is regaining focus
|
||||||
|
(via "SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH"), which is how
|
||||||
|
the earlier SDL1.2 versions worked.
|
||||||
|
Bill Kendrick <bill@newbreedsoftware.com>
|
||||||
|
|
||||||
* Other Improvements:
|
* Other Improvements:
|
||||||
-------------------
|
-------------------
|
||||||
* Automatic button size option ("buttonsize=auto"), to scale button
|
* Automatic button size option ("buttonsize=auto"), to scale button
|
||||||
|
|
|
||||||
|
|
@ -29444,6 +29444,11 @@ static void setup(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Clicking into window while unfocused would not let
|
||||||
|
the clicks through, which was unlike how things worked
|
||||||
|
in SDL1.2, and I found that annoying -bjk 2022.09.15 */
|
||||||
|
SDL_SetHint(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, "1");
|
||||||
|
|
||||||
/* Set up event filter */
|
/* Set up event filter */
|
||||||
|
|
||||||
SDL_SetEventFilter(TP_EventFilter, NULL);
|
SDL_SetEventFilter(TP_EventFilter, NULL);
|
||||||
|
|
@ -29684,7 +29689,6 @@ static void setup(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue