Gaming on a dual monitor setup offers immersion and multitasking, but few things ruin a clutch moment faster than your mouse cursor wandering onto your second screen. That split-second distraction can cause missed shots, unwanted tab-outs, and pure frustration. Fortunately, you can tame your cursor with a mix of settings tweaks, third-party tools, and game-specific fixes. This guide walks you through every reliable method to keep your mouse locked to your game, so you can focus on the action without boundaries.
Understanding Why Your Mouse Leaves the Game Screen
The root cause is usually the way the game handles display modes. Exclusive fullscreen gives the game full control over your monitor, naturally confining the cursor. Borderless windowed mode, while convenient for alt-tabbing, treats the game like a regular window, allowing the mouse to drift across monitor edges. Some games also lack built-in cursor lock, especially older titles or indie releases. Understanding these mechanics helps you choose the right fix.
Built-in Solutions to Lock the Cursor
Use Exclusive Fullscreen Mode
This is the simplest and most effective fix. In your game’s video or graphics settings, select “Exclusive Fullscreen” or “Fullscreen” (not “Borderless Windowed” or “Windowed Fullscreen”). Exclusive fullscreen mode automatically confines the mouse to the game display. If the option is missing, you can often force it by editing the game’s configuration file (look for a value like “FullscreenMode” and set it to 0 or 1 depending on the engine) or by adding a launch parameter like -fullscreen or -window-mode exclusive.
Configure In-Game Cursor Lock Settings
Many modern games offer a “Lock Cursor to Window” or “Confine Cursor” option in the mouse or controls menu. Enabling this setting tells the game to grab and hide the cursor while you play, preventing it from escaping. If your game lacks this, check the accessibility or interface sections for any cursor-related toggle.
Windows Display Settings and Mouse Tricks
While Windows doesn’t provide a universal one-click mouse lock, you can reduce the annoyance by positioning your monitors. Align them diagonally (top-left to bottom-right) in the display settings so the cursor only crosses at the corners, making accidental drift less common. Additionally, under “Mouse Properties” in the Control Panel, increase the pointer speed slightly and disable “Enhance pointer precision” to give you better muscle control near screen edges.
Enable Windows Game Mode
Windows Game Mode (on by default in Windows 10 and 11) prioritizes gaming processes and can sometimes help the system recognize a fullscreen game and better manage focus. While not a direct cursor lock, it minimizes background distractions that might steal focus and free the cursor. Verify it’s active by opening Settings > Gaming > Game Mode.
Third-Party Software for Cursor Locking
When built-in options fall short, dedicated utilities provide the missing lock with minimal performance impact. These tools are lightweight, free, and widely used by dual monitor gamers.
Dual Monitor Tools (DMT)
This open-source suite includes a “Cursor” module that lets you lock the mouse to a specific monitor with a customizable hotkey (default Ctrl+Shift+L). You can also define screen edge stickiness, so the cursor resists crossing boundaries. DMT is portable, requires no installation, and runs silently in the system tray. Download from the official website and configure the lock behavior under the Cursor tab.
Cursor Lock
The appropriately named Cursor Lock tool by SnakeByte Studios works by targeting the window your game opens. You point the utility to the game’s executable, and it enforces strict cursor confinement to that window whenever it’s active. It even supports profiles for multiple games and can auto-lock on launch. Setup is a one-time process per game, making it a set-and-forget solution.
Borderless Gaming
While primarily designed to run borderless windowed games in a fullscreen-like state, this tool also includes a mouse locking feature. Enable “Fix mouse clipping” in the settings, and it will attempt to keep the cursor inside the game window. It works with nearly any game and is available on Steam or GitHub. Note that some anti-cheat systems may flag it, so use with caution in competitive online games.
Other Utilities
DisplayFusion offers a “Mouse Lock” function within its comprehensive monitor management features. If you prefer a minimalist approach, search for “Lock Cursor Tools” or “Mouse Jailed” – simple scripts that toggle confinement with a hotkey. Always download from trusted sources to avoid malware.
Game-Specific Fixes
Some popular titles have finicky cursor behavior. Here’s how to address them directly.
Apex Legends
Set the game to “Fullscreen” in video settings, then add the launch option +m_rawinput 1 to use raw mouse input, which often improves cursor confinement. If you’re still experiencing drift, try the command m_mousespeed 0 in the launch options or autoexec.cfg.
Call of Duty: Warzone
Warzone respects display mode well in exclusive fullscreen. If you prefer borderless for faster alt-tabbing, navigate to Documents > Call of Duty > players > adv_options.ini and set DisplayMode to 2 and FullscreenBorderless to 0 to enforce exclusive fullscreen. For a cursor lock in borderless, use DMT or Cursor Lock alongside.
League of Legends
Riot Games’ title has an in-game “Lock Camera” option, but that’s for the camera, not the cursor. Under Settings > Interface, enable “Confine Mouse Cursor to Window.” This will keep the cursor inside the game client even in borderless mode. As a fallback, switch to fullscreen in graphics options.
Other Games
For games without native lock, check the PCGamingWiki for each title. Often there’s a configuration file tweak or a hidden launch parameter like -window-mode exclusive or -fullscreen. Games built on the Unity engine often respond to -popupwindow or -window-mode exclusive, while Unreal Engine games may require editing the Engine.ini file with a line like FullscreenMode=1.
Troubleshooting Persistent Mouse Drift Issues
If the cursor still slips through, dig deeper. Disable overlay software (Discord, GeForce Experience, MSI Afterburner) temporarily – they can interfere with cursor handling. Update your mouse drivers through Device Manager or the manufacturer’s software. Uncheck “Allow the mouse to wake the computer” in Device Manager > Mice > Power Management tab to prevent wake-induced focus loss. Also, close any background apps with always-on-top windows (like system monitors) that might steal focus. Finally, if you use a wireless mouse, switch to a wired connection to rule out signal interference.
Frequently Asked Questions
Can I lock my mouse to one monitor without installing any software?
Yes, using exclusive fullscreen mode in your game is the simplest software-free solution. Additionally, repositioning your monitors diagonally in Windows display settings can make accidental crossings harder. However, for a reliable lock in borderless mode, third-party tools are usually necessary.
Why does my mouse cursor leave the game even in fullscreen mode?
This often occurs when the game is running in borderless windowed mode despite claiming “Fullscreen.” Verify your display settings – if you can alt-tab instantly without the screen flashing, it’s borderless. Also, background processes stealing focus can temporarily release the cursor lock. Close overlays and disable notifications to test.
How do I lock the cursor in specific games like Apex Legends or Warzone?
For Apex, force exclusive fullscreen and use raw mouse input launch options. For Warzone, edit the adv_options.ini to ensure DisplayMode=2. Both games also respond well to third-party tools like Cursor Lock or DMT. Always check the game’s official forums for any recently added cursor lock settings.
Is there a built-in Windows 10/11 feature to confine the mouse to a single monitor?
No, Windows does not offer a native mouse confinement feature. The closest built-in option is using exclusive fullscreen mode in games. For a permanent desktop-level lock, third-party utilities are required.
What is the best third-party tool to prevent the mouse from leaving the game screen?
Dual Monitor Tools is highly recommended for its simplicity, reliability, and hotkey toggle. Cursor Lock is excellent for per-game profiles. Both are free and have minimal system impact. Try DMT first if you want a universal toggle; use Cursor Lock for automated per-game locking.
Does using a second monitor impact gaming performance?
Running a second monitor with static content like Discord or a browser has a negligible performance impact (1-3% FPS) on modern GPUs. However, playing a video on the secondary monitor can use additional GPU resources. Cursor locking itself does not affect performance.
How do I stop my mouse from moving to a second monitor when using borderless windowed mode?
The most straightforward solution is to use a cursor locking tool like DMT or Cursor Lock. Alternatively, some games have a “Lock Cursor to Window” setting. If you must avoid software, consider switching to exclusive fullscreen when playing.
My mouse still drifts to the second monitor after trying everything. What else can I do?
Perform a clean boot to eliminate software conflicts, update your graphics and mouse drivers, and test with a different mouse. As a last resort, you can physically disable the second monitor in Windows while gaming (press Win+P and select “PC screen only”). This guarantees the cursor cannot leave your primary display.
With the right combination of in-game settings, system-level tweaks, and a trusty utility or two, you’ll never lose your cursor to the abyss of a second monitor again. Whether you prefer the simplicity of exclusive fullscreen or the flexibility of a hotkey lock, implement these fixes and reclaim your focus in every game.


