Xbox Game Bar Cursor Lock: Fix It in 5 Steps
In this article
If your mouse cursor keeps escaping the game window while using Xbox Game Bar, the fix is usually a quick settings toggle or a keyboard shortcut. The cursor lock issue happens when Game Bar's overlay doesn't properly capture your mouse, often after an update or when multiple displays are connected. Below are the exact steps to lock the cursor back into your game, plus troubleshooting if it still misbehaves.
What You'll Need
- A Windows 10 or Windows 11 PC with Xbox Game Bar installed (it comes preinstalled).
- Your game running in fullscreen or borderless windowed mode (cursor lock works best in fullscreen).
- Access to the Game Bar overlay (Win + G by default).
Step-by-Step
- Open Xbox Game Bar – Press Win + G while your game is running. The overlay should appear. If it doesn't, press Win + Alt + G to record a clip (this also opens the bar).
- Check the cursor lock toggle – In the Game Bar overlay, click the Settings (gear icon) in the top-right corner. Navigate to the General tab. Look for a checkbox labeled "Lock cursor to game window" (or similar wording, depending on your Windows version). Make sure it is checked. If it's already checked, uncheck it, wait a second, then re-check it to reset the setting.
- Use the keyboard shortcut – Press Win + Alt + G to toggle the cursor lock on/off. This shortcut works even when the Game Bar overlay is closed. If your cursor is escaping, press it once to lock it back.
- Switch your game to fullscreen – Cursor lock is more reliable in fullscreen mode. If you're playing in borderless windowed or windowed mode, press Alt + Enter (in most games) or change the display mode in the game's video settings to "Fullscreen". This often resolves the issue immediately.
- Restart Game Bar – If the toggle and shortcut don't work, close the Game Bar overlay (press Win + G again) and then restart it. You can also end the Game Bar process from Task Manager: press Ctrl + Shift + Esc, find "Game Bar" under Processes, right-click it, and select "End task". Then press Win + G to relaunch it.
Common Mistakes
- Forgetting to check the Game Bar settings – The cursor lock toggle is not enabled by default on some systems. If you never turned it on, the cursor will always escape.
- Using borderless windowed mode – Many games default to borderless, which can confuse Game Bar's cursor capture. Fullscreen is the most reliable.
- Not updating Windows or Game Bar – An outdated Game Bar can have bugs that affect cursor lock. Check Windows Update regularly.
- Conflicting with other overlay software – Discord, NVIDIA GeForce Experience, or Steam overlays can interfere with Game Bar's cursor lock. Try disabling them temporarily to test.
Tips
- Use the shortcut as a quick toggle – Win + Alt + G is the fastest way to lock/unlock the cursor without opening the full overlay.
- Set your game to fullscreen – For the most stable cursor lock, always play in fullscreen mode. If you need to alt-tab frequently, consider borderless but know the cursor may escape.
- Disable Game Bar entirely if you don't need it – If you never use Game Bar, you can turn it off in Windows Settings (Settings > Gaming > Game Bar) to avoid any interference with other capture tools.
- Update your graphics drivers – Outdated GPU drivers can cause input issues. Check your GPU manufacturer's website for the latest driver.
Troubleshooting
If the cursor still escapes after following the steps above, try these in order:
- Restart your PC – A simple reboot clears temporary glitches that can affect Game Bar.
- Check for Windows updates – Go to Settings > Windows Update and install any pending updates. Game Bar updates are often bundled with Windows updates.
- Repair or reset Game Bar – Go to Settings > Apps > Installed apps, find "Xbox Game Bar", click the three-dot menu, and choose "Advanced options". Then click "Repair". If that doesn't help, click "Reset" (this will not delete your game clips or settings, but it will reset Game Bar's preferences to default).
- Disable other overlays – Temporarily disable Discord overlay, GeForce Experience overlay, or Steam overlay to see if one of them is stealing cursor capture.
- Use the game's own cursor lock – Many games have a built-in "Lock Cursor" option in their settings. Enable that instead of relying on Game Bar.
- If nothing works, use a third-party tool – Tools like "Cursor Lock" (free, open-source) can lock the cursor to a specific window. However, be cautious about downloading from unofficial sources; only use reputable software.
Frequently Asked Questions
Why does my cursor keep escaping the game window?
It's usually because Game Bar's cursor lock is disabled, or your game is running in borderless windowed mode. Enabling the lock in Game Bar settings and switching to fullscreen usually fixes it.
Does the cursor lock work in all games?
It works in most games, but some games have their own cursor handling that overrides Game Bar. If it doesn't work, use the game's built-in cursor lock option.
Will turning off Game Bar affect my game recording?
Yes, turning off Game Bar disables its recording and screenshot features. If you rely on Game Bar for clips, keep it on and just adjust the cursor lock setting.
Can I lock the cursor to a specific monitor?
No, Game Bar's cursor lock only locks to the game window. If you have multiple monitors, the cursor can still move to other screens when the lock is off.
Does the cursor lock work in windowed mode?
It can, but it's less reliable. Fullscreen mode is the most stable for cursor locking.
What if the Win + Alt + G shortcut doesn't do anything?
Make sure Xbox Game Bar is enabled in Windows Settings (Settings > Gaming > Game Bar). If it's disabled, the shortcut won't work. Also, check if your keyboard has a Fn key that needs to be held down.