Check your mouse focus settings in your desktop environment (gnome/KDE/whatever).
There may be an option called mouse stealing prevention or something, but if you have a look you should hopefully see it. On xfce it's in its own tab in the mouse menu