mirror of
https://github.com/libretro/RetroArch
synced 2025-03-24 22:43:41 +00:00
Only grab mouse when there is input focus.
This commit is contained in:
parent
76ddce84a3
commit
7f25a608f4
@ -233,7 +233,7 @@ static void x_input_poll_mouse(x11_input_t *x11)
|
|||||||
x11->mouse_r = mask & Button3Mask;
|
x11->mouse_r = mask & Button3Mask;
|
||||||
|
|
||||||
// Somewhat hacky, but seem to do the job.
|
// Somewhat hacky, but seem to do the job.
|
||||||
if (x11->grab_mouse)
|
if (x11->grab_mouse && video_focus_func())
|
||||||
{
|
{
|
||||||
struct rarch_viewport vp = {0};
|
struct rarch_viewport vp = {0};
|
||||||
video_viewport_info_func(&vp);
|
video_viewport_info_func(&vp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user