[qtbase] Try to read events from grabbed device

Fixes regression caused by commit 214c1d4c9e1e2ec27dad0dbd406e86c0f19a5877.