I play a lot of FPS games in windowed mode, particularly TF2. I find that when I need to make a quick turn and then fire, I will occasionally exit the window by clicking outside of it. Especially unfortunate since I'm usually trying to aim during this.

What causes this unfortunate 'clicking-out' effect? And also, is there a way to fix it?

  • 5
    It usually means the game isn't locking the cursor inside the window properly..
    – 3ventic
    Jan 18, 2014 at 14:39
  • 1
    Would there be a standard fix across games? Or would it be a case-by-case thing?
    – Zibbobz
    Jan 18, 2014 at 14:40
  • I know there was a program somewhere that allows you to do it, but it was made for running old games in fullscreen with multiple monitors. It might apply here, but I can't find it right now. That being said, TF2 is a new enough game that it should lock the cursor properly..
    – 3ventic
    Jan 18, 2014 at 14:42
  • @3ventic Most of the time it does, but it happens when I'm trying to rocket-jump or shoot behind me that it'll just click out and ruin my day.
    – Zibbobz
    Jan 18, 2014 at 14:56
  • 1
    Many FPS games will center the mouse cursor into the center of the window each frame. They use the delta to determine how far the mouse moved. If your mouse moves too far and you click before the game can center it, then your OS will see the mouse clicking outside of the window.
    – user66184
    Jan 18, 2014 at 15:58

1 Answer 1


I'm a bit late here, but if you still have this problem, there might be a solution.

First things first: as Thebluefish said, Source Games, and other games as well, center the cursor to the center of the game every other time unit. How much that is is Engine dependent, and I do not know how often it does that. If you move your mouse quickly enough within one frame, and click before it has time to reset, you click outside the frame of the window, onto the desktop or another window, and that application receives focus.

Games like Starcraft 2 fully capture the mouse within the boundaries of the game, so no matter how fast your mouse moves, you shouldn't be able to move outside of it. That is made worse the smaller your Gaming Window is. In my case however, I usually do not go lower than one resolution step below my native monitor.

Now, one option of course would be to play single-monitor full screen. That way, there is no "outside the window" you can click to.

Option two would be to decrease the sensitivity of your mouse in Windows, and up the mouse sensitivity in your game. Also, if you are still not using it raw input, I would recommend enabling Raw Mouse Input, if that option is available. In TF2 you can do that in your mouse options, or via console with the m_rawinput command. You can change sensitivity via the console command/variable sensitivity. If you don't want to change your mouse speed while working in Windows, you can use scripts to change System Mousepointer Speed, and change it back afterwards. Just look for it via Google. What this does is that it decreases the distance the mouse cursor travels for every refresh iteration, which makes it less likely for you to click outside your window.

  • This explains why it most often happens to me while playing soldier. The rapid-flick motion is basically essential to perform a proper rocket jump. Thanks for the suggestions!
    – Zibbobz
    Jul 3, 2014 at 12:57
  • Exactly... Rocket Jumps or 180-Flickshots as Sniper/Scouts are usually the the reason... also had this when reflex-airblasting something behind me. Jul 3, 2014 at 13:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .