fix getting state when in remote app mode

This commit is contained in:
Michael Osborne 2012-02-27 17:04:11 -06:00 committed by Anthony Tong
parent fcd3b4a130
commit 2c4a63e180

View File

@ -109,7 +109,11 @@ int xf_kbd_read_keyboard_state(xfInfo* xfi)
XQueryPointer(xfi->display, xfi->window->handle,
&wdummy, &wdummy, &dummy, &dummy, &dummy, &dummy, &state);
}
else
{
XQueryPointer(xfi->display, DefaultRootWindow(xfi->display),
&wdummy, &wdummy, &dummy, &dummy, &dummy, &dummy, &state);
}
return state;
}