Don't consider the cursor to be in window if it's not active
Don't consider the cursor to be in window if it's not active

Forge allowed to clip cursor even if it was running in background,
which could happen if the player was defeated while alt-tabbed.

ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery