hackish mouse workaround for buggy sdl or gnome?

This commit is contained in:
p.kosyh 2009-09-20 14:47:16 +00:00
parent fdd4a85428
commit a34daa22fe

View file

@ -60,10 +60,10 @@ int input(struct inp_event *inp, int wait)
return AGAIN; return AGAIN;
} }
case SDL_ACTIVEEVENT: case SDL_ACTIVEEVENT:
if (event.active.state & SDL_APPMOUSEFOCUS) { if (event.active.state & (SDL_APPMOUSEFOCUS | SDL_APPINPUTFOCUS)) {
if (event.active.gain) if (event.active.gain)
m_focus = 1; m_focus = 1;
else else if (event.active.state & SDL_APPMOUSEFOCUS)
m_focus = 0; m_focus = 0;
} }
return 0; return 0;