Only grab mouse when there is input focus.

This commit is contained in:
Themaister 2013-03-29 19:03:55 +01:00
parent 76ddce84a3
commit 7f25a608f4

View File

@ -233,7 +233,7 @@ static void x_input_poll_mouse(x11_input_t *x11)
x11->mouse_r = mask & Button3Mask;
// Somewhat hacky, but seem to do the job.
if (x11->grab_mouse)
if (x11->grab_mouse && video_focus_func())
{
struct rarch_viewport vp = {0};
video_viewport_info_func(&vp);