When I am mining or pvp, my mouse will move out of the window when I look down in the game, if I click my mouse, game will pause, that really troubled me. Also it seems that this bug has been for lots of versions
Linked issues
is duplicated by 130
Attachments
Comments 105
So since the duplicate issue I was part of got 'resolved' by directing us to this one instead... Re-commenting my own issues that have not been resolved by the developers.
I have 2 monitors so this issue makes it pretty much impossible to play this version of the game. Full Screen does not solve the problem cause it's just an unbordered window. So when I look too far to the side my mouse trails off to my second monitor (or the task bar if I look down just like the OP).
I found a program last year that you can download called Cursor Lock which makes the windows 10 version of Minecraft playable.
http://www.snakebytestudios.com/projects/apps/cursor-lock/
Setup User Mode with the Lock set to Window Interior, designate whatever hot keys you wanna use for Locking/Unlocking, save it and then run the 'Start User Mode'. Problem solved.
I hope this information helps anyone else who is frustrated with this issue.
As per the comments in MCPE-32962 - please make sure that is not a display or taskbar setting, or a driver issue.
It isn't. This version of Minecraft (the java one still works great) is the only game that has this problem that I play and I solved it by the Cursor Lock I mentioned in my previous comment reposted from last year. Still, it would be great if I didn't have to use another program to do such a simple thing to make this playable with multiple monitors.
Are you able to add any more information about your setup that might help to reproduce the issue? (I have personally used multiple screens for a long time and have never had the issue with the cursor leaving the game unexpectedly.)
This issue is affecting me too. I am using two monitors and my laptop screen. The issue starts for me after the first time I open the inventory. The mouse will then be able to scroll outside of the game window and interact with other programs and the desktop that are outside the game window though it still controls the game. Very annoying and game-breaking. This issue doesn't occur on Java edition, only on the Bedrock edition. I am running Windows 10 with the latest updates, my graphics card is a standard Intel HD Graphics onboard on my laptop.
A similar issue has affected users of other games, and it was resolved by adjusting their User Account Control setting in Windows. (A restart may be required for the setting to take effect.)(Reddit)
After recently experimenting with this issue it appears to be a Windows issue rather than a game issue, User Account Control does not resolve the issue in Windows 10 version 1809.
Fixed in 1.8.0
Not fixed in 1.8.1
Wait a second, only some PCs got the fix in 1.8. Others still have the issue.
You just need to change the "EnableLUA" Registry Value to 1. HKEY_LOCAL_MACHINE > Software > Microsoft > Windows > CurrentVersion > Policies, and click on System. And You'll Find Enable LUA. Sorry for my bad english
If your mouse moves out of the window, then please follow these steps:
1. Check that the Minecraft icon on the taskbar is lit up instead of almost transparent.
If this does not resolve the issue, then look at this step:
2. Make sure that no popup's interrupt gameplay in the background. (This is a follow up to step 3)
3. Check task manager for any background processes. I would not recommend scrolling all the way down. IF YOU DO YOU SEE SYSTEM.EXE. DO NOT CLICK ON IT AND HIT END TASK OR IT WILL CRASH YOUR PC AND GIVE YOU A BSOD (BLUE SCREEN OF DEATH)!
And those are the 3 steps to make sure you stay in the Minecraft window.
Have a good day!
Hello, I am having this issue with the Windows 10 App version of the game. I have performed the troubleshooting from Muhammad and Tyson, and still have the issue.
I solved the problem of enabling User Account Control (UAC). Before that, I used the program Borderless Gaming
I have this issue as well, UAC is enabled, I have tried the registry fix, still not resolved. I am using a LenovoP51 laptop with a docking station and 2 external monitors, any time i am playing minecraft on my center screen and drag the mouse too far left or right to pan my view, if i then click, it will process the cursor click on the other monitor if the mouse cursor ended up on another screen. Even when just using my laptop OFF of the docking station, sometimes, if I am in full screen and look downward, the task bar will pop up and if i click it it will bring up the game menu because my cursor clicked outside of the FULL SCREENED minecraft window
attached a sample, if i play with multiple monitors and look too far to the left or right, (full screen) I now have a cursor outside minecraft AND the cross-hairs inside minecraft. The player's viewport still rotates, but if i click, it clicks wherever the cursor is NOT inside minecraft and brings up a menu as though i clicked outside minecraft.
This happens as well when i disconnect my laptop from my other monitors and play with just my laptop, it looks the same as the other screenshot, where my taskbar will pop up while in full screen mode and then clicking wil not perform the minecraft action, but will click my taskbar buttons.
Yeah, I just noticed this happening to me today and it seems like it has been a problem for quite a long time now. Looking left will drag my cursor off my game and onto my second monitor, then clicking will simply bring up the "escape" menu. I play with a rather low sensitivity and a higher dpi, so i really can't turn at all. I'm really hoping this is fixed soon, as it doesn't seem like a problem that I've run into on any game before, and feels like it should be relatively simple to fix.
This happens to me also. I'm on a clean install of windows 10 home and the mouse leaves the game window. It is so annoying getting hit by mobs when the mouse is leaving the games window. I kind of makes the game unplayable. I think when a player right clicks that is when the mouse comes out of the window.
I wrote a small Python script to keep the mouse away from the edges of the screen.
First (assuming you have Python installed), install some Python modules using the Windows command prompt:
pip install pywin32
pip install keyboard
Then, run the following Python script (press DELETE to stop):
import win32api,win32con
import keyboard
ScreenSize_x = win32api.GetSystemMetrics(0)
ScreenSize_y = win32api.GetSystemMetrics(1)
Center_x = ScreenSize_x//2
Center_y = ScreenSize_y//2
while not keyboard.is_pressed('Delete'):
Mouse_x, Mouse_y = win32api.GetCursorPos()
if Mouse_x < 50 or Mouse_x > ScreenSize_x - 50 or Mouse_y < 50 or Mouse_y > ScreenSize_y - 50:
win32api.SetCursorPos((Center_x, Center_y))
Now, whenever the cursor comes close to one of the edges of the screen, its position is set to the screen's center.
i'm also having this issue, initially i thought it was because i was using moonlight but after testing it just seems to be minecraft itself.
I have this problem too, but only when I run Minecraft and Overwatch at the same time. I run both games since I want to play Minecraft when I wait for a match in Overwatch.
@Matthias Kerkhofs, thank you for the Python script, it is very helpful! 🙂
@Till Kraemer
You're welcome! 😃
@Matthias Kerkhofs been using the script as well, working great as a work around. Thanks a ton. I wish they would just friggin fix this though!
it doesn't work now 😞
same it sucks 😞
I met this on 1.14.0 too. And I found that it doesn't happen at start, after seconds of time it will happen.
My OS is Windows 10 1803.
It appears that this problem is fixed for fullscreen single monitor devices.
Win+R and type gpedit.msc to launch.
Navigate to Computer Configuration/Administrative Templates/Windows Components/Edge UI
Disable "Allow Edge Swipe" (by right clicking and selecting "edit")
You press Esc and then move the mouse and then hit Esc again.
Tried to disable "Allow Edge Swipe", nothing changed, the mouse still runs away from the game...
😞
I have minecraft on a machine with 3 monitors and after the Bee update it no longer happens as long as I am full screen. All kinds of other bugs (pun partly intended) but not this one.
It occurs because of the way touch is handled. If you move a cursor with your finger, it properly affects view movement. The finger is basically just the mouse. In versions like 1.13, the bug isn't present. But in the following version, it gets reintroduced.
Hopefully they find out a way to make the cursor like it would be in Java, and disable the cursor when touch is involved, or a way to keep the cursor away from the taskbar.
Yes my PC is a laptop and its screen can be touched to play.
Maybe all players met this issue are the same as me?
If you have one, use a controller or a touch screen device with any of your worlds ported over.
This issue makes the game pretty much unplayable for me. I have a secondary monitor to the left of my primary monitor where the game is being run. If I look to the left in game, the mouse appears on my secondary monitor (though the camera in game still turns as expected). If I then left click, attempting to interact with something in the game, instead the game loses focus and pauses, because I clicked on the secondary monitor.
Plenty of other games have an option to lock the cursor to the bounds of the game window.
This makes the game unplayable for me. My cursor wandering onto my second monitor and kicking me to the main menu has caused my character to die several times due to the lag of my having to move my mouse back to my primary screen and click "Resume Game". Please fix this. I just got this game and for it to be unplayable due to a completely fixable issue is disappointing, to say the least.
when will you solve this problem?
I was helped by the inclusion of User Account Control (UAC). Before that I used the borderless Gaming prog
I soveld this problem by reinstall windows.it must be a system bug.microsoft should sovel this windows uwp bug.
This bug happens to me occasionally, but only when I have another game running at once (Overwatch, while set on Borderless Windowed)
This issue was reported almost two years ago, and there's STILL no resolution? I made the mistake of buying the Win10 version from the Microsoft App Store and they won't refund my money even though I have expressed to them how this is broken and a known issue. C'mon Mojang, help your customers here!!!
may be a bug from windows uwp(may be caused by some sys file lost) not minecraft
Still issue. Unresolved 3 years later.
I have the same issue.
i have same issue. it is really annoying and problematic. i die only because of the mistake all the time.
The mouse cursor leaves the game window in windowed mode.
This problem appears, when certain programs/games are running at the same time (or in the background) while playing Minecraft (Bedrock).
This problem also appears under the same conditions/circumstances in Roblox (also from the Microsoft Store).
Minecraft Java Edition does not have this problem btw.
For me, the game Overwatch is the reason of this problem. (I always play MC during the queue time.)
For other people with the same problem, may other programs/games/background processes are the reason of their problem.
The appearing taskbar problem in fullscreen mode can be solved by disabling EdgeUI.
But the mouse/cursor is still leaving the window when i play Minecraft in windowed mode (I only use one monitor).
I already tried a lot of things, but sadly nothing works.
Surprisingly, this problem does not exist for the Minecraft: Education Edition (1.14.31).
But afaik Minecraft: EE is a Win32 program packaged as an UWP app, but the normal MC BE is a full UWP app.
With this information i have good reason to believe, that the UWP app format (also known as Windows Apps) is the reason of this problem and it may have to be addressed to Microsoft too, and not only to Mojang.
Found the solution via Sea Of Thieves another MS Game: https://support.seaofthieves.com/hc/en-gb/articles/360000425788-Mouse-cursor-not-locking-to-screen
The 3rd option worked for me:
Fix#3
1. Open the run command window (Win + R)
2. Type 'regedit' and press ENTER
3. Navigate to 'Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\'
4. If it doesn't exists, right click the editor background and select Add> Key. Change the name to 'EdgeUI'
5. Navigate to 'EdgeUI' key, right click the editor background and select Add> DWORD (32bit value), change the name to 'AllowEdgeSwipe' and set it to 0
6. Close the Local Group Policy Editor window and boot Sea of Thieves.
Darren Thank you so much.
Thanks for the tip Darren, but this still didn't work for me or any of the other solutions.
It is really a sad thing that Fall Guys, a much smaller team and much smaller game compared to Minecraft can solve this cursor-staying-in-window feature right away but Microsoft and Mojang can't... after so many years...
I found that if you move your mouse slowly, this will not happen. But if you move it very fast it will always get out of the window, and after that even you move slowly again, your mouse will never be locked into the window until you open inventory or menu.
Is this useful?
Well I made a test and found something weird.
After you closed a GUI, like inventory or chests, and return to the game playing, the actual position of cursor will not move for seconds. But after that your cursor will start moving and get out of window again.
I uploaded a video for resolving this issue.
Ok I resolved that by uninstalling and reinstalling an older touchpad driver, and this no longer happens.
So it can be a touchpad compatibility problem.
*EDIT BECAUSE I FOUND OUT WHY IT WAS HAPPENING
At least for me... I had World of Tanks running on another monitor. After logging out of that for the night, I figured I'd give this cursor lock program another try. Started minecraft, tried playing, and the mouse stays in the window! WOOOO! No idea why this is a thing. I tried changing all the video settings of WoT, nothing seemed to work. Windowed, full screen, borderless window. It all messes up MC. I still have to use cursor lock, but at least it's playable now. I just wish I could play it while WoT was open, cuz my original plan was to play MC during downtime. So that's still a no go.
My friend tested it with Final Fantasy XV and it was also making the mouse cursor going out of the minecraft window.
This is happening to me. Mouse curser moves out of the Minecraft game window while playing even if not in a menu or box etc.. nothing I've tried has worked.
Windows 10 ver.
Tried reset (on the app itself)
Tried graphics driver update.
Tried re-install.
Tried every setting in the game itself, from full-screen to windowed etc. Including checking and unchecking all the options for literally everything.
Tried a regedit for edge swipe.
Tried attaching a mouse curser locking program such as Cursor Lock, to no avail because the .exe for minecraft windows 10 apparently doesn't exist? Found "applications" but they all say path not found or I don't have access or something... tried all the admin settings, setting permissions etc. Nothing works. Also I can't seem to find out how to run "user lock" mode? That I just enable a lock to current window whenever I press the hotkey but it doesn't work. Someone said above to "just start User Mode" and there's no such thing...
Tried moving the game window to other monitors etc.. no other game I have has this problem either so it's very confusing and frustrating.
I haven't had this issue happen until today when I had another game running. If I close out of the other game, Minecraft goes back to working properly. If I launch a different game with Minecraft still running, the cursor begins to leave the window again. This happens in fullscreen, borderless window and windowed in all combinations between Minecraft and the other game, the "other game" can be all types of games and Minecraft responds the same way by allowing the cursor to leave the game window, making Minecraft unplayable.
I have this issue with the RTX beta v1.16.200.55. I notice that when looking down, the mouse will open up the task bar while in-game. This is completely game breaking as it often forces me outside of the game when looking down and trying to interact with the game.
I also tried turning on my second monitor, which is positioned to the left of my main screen where Minecraft runs. When I move my mouse to the left for a while, the mouse moves onto the second monitor. When I click, I am taken out of the game.
It appears that the game does not capture the mouse AT ALL. I am running in full screen mode.
It started when I got a new PC a few weeks ago, with a 2060 RTX. I never had it on my old PC, both windows 10. So I can't see how this is a WIN10 problem.
I quick work around is found in how you set up both monitors. In the NVIDIA settings you can position your screens manually. If you put your second monitor in a corner of your main monitor and let them touch just on the corners, the chances are pretty small that your cursor will leave your main monitor. It's a bit painful now to switch between screens, but it's the best I can come up with.
I've had the same issue starting on 1.16.201. I use a single monitor and even when I don't have another game running, it still goes out every time. When I click though, it doesn't pause the game but instead clicks on whatever my mouse was over.
I didn't see the older comments, but I was going back to them just now. I found a ton of them said to change UAC notification settings to the default one, so I did and now it's magically fixed! Hope this will help anyone who sees this comment.
Mike Zang Had solved my problem, sure this will work for you, just go search Change User Account Controll Settings > Put it on middle (or you can put in never so no one notify you) > and restart, tadda it got fixed THANKS MIKE
YES YES!! Tysm Mike and Quinn
i tried the CUA Control setting didnt work. i even listed a bug report and not even 2 hours later it was just marked as resolved. that was about 5 months ago i understand they said it was a duplicated complaint but the fact that they havnt fixed it is outrages. can someone here atleast help me of what else i could do.
This is caused by the way they have coded the app, they are using that unified windows framework thing that Microsoft created and to be honest with you I don't think they can fix it. It is easy to reproduce, press 'E', open a chest, crafting box, or anything that switches to the none 3D world interface, then move the mouse to the bottom or top of the screen. Either the Task bar or the window title will pop up. Then most players will press escape to exit out of the screen, your mouse then has the a different context (Task bar or menu title) and when you click the mouse it will send you to the pause screen as the game thinks you have just clicked the task bar or menu title. It is extremely frustrating and happens all the time. Its bad coding/quality control and I cant believe that this bug has persisted for as long as it has. If you get this, the easy way to fix is use Java edition as it doesn't suffer this problem. There is apps that allow you to import your worlds.
This just started affecting me, when I started playing beta 1.17.20.20 and I reported it, it took me to this, and this bug is still working as of 6/30/2021, and is still working on beta 1.17.20.21, I have dual monitors, so this basically makes Minecraft Unplayable for me
this did not fix the problem.
Issue still persists in version 1.17.4006.0
Affects for version 1.18.1
Affecting version 1.19.11.... is this going to be fixed?
Affects 1.19.20. Cursor moves to task bar, 2nd monitor, it's a mess. Please fix with urgency as this is extremely frustrating. Going to look for other bugs that are duplicates of this to funnel attention.
Hey everyone, I am not having this issue myself, but try resetting all of your minecraft keybinds.
I have enabled UAC via the control panel & that worked just fine*. You just need to reset your PC after making that change (it worked by changing to "Notify me only when apps try to make changes to my computer". Of course, for certain apps, this now means I have to click a window to give the program permission to run, every time I open the app. Hopefully this bug can be fixed so we don't have to hunt for workarounds for 5-year-old bugs.
*Just fine for Minecraft. Other applications I run still require a dialogue box or elevation & this workaround is cumbersome. I'm just glad this worked for me, others have not had that good fortune.
Tried resetting keybinds as Johnny suggested, this didn’t help. Changing the UAC settings did resolve the issue though. But as Douglas stated above, this still needs to be fixed so we don’t have to find a workaround. Dev’s please do your job.
I have this issue as of 1.19.41. This is a seriously old bug.
Desktop, tablet mode disabled (of course), AMD drivers, everything up to date.
I am also having this issue but noticed something that I haven't seen reported. It works as expected when playing a local game or connecting to public servers shown by default. I am only noticing this issue when connecting to Minecraft Servers (Bedrock edition) I created.
I was setting these servers up locally as an experiment and one was running on the latest stable version of Ubuntu Server in VMWare and the most recent Bedrock server direct from minecraft.net. I followed some pretty standard guides online and had this issue. Tonight, I setup a Minecraft Server (Bedrock) using docker on a new windows PC running the latest version of Windows 10 and I'm again having the same issue. The mouse does not lock to the screen and when panning left the mouse moves over to my second monitor. I went into a local map (not a server) and it works fine. I then went into the public servers and it works fine. It's only when connecting to my own servers.
I just solved the issue. I had another game open in the background that also captures the mouse and it was minimized. After closing the game my issue went away. The other game was Call of Duty Modern Warfare II.
I still find it strange it only showed up playing a local private server.
This is still happening in Bedrock ver. 1.19.51. My game is stored locally and not run from any server setup. The mouse is not locking to the game. Even in fullscreen mode, the mouse rolls out of the game and can pull up the windows taskbar or the title bar. I'm running a dual monitor setup, and found a way to keep the mouse in game using a different program called Dual Monitor Tools, but the mouse can still pull down the title bar.
How say @unknown swithing-on UAC at least on first lvl fix this problem.
I found a solution to this issue on my computer. In the Registry Editor (regedit) (Tip: Use the WIN+R keyboard shortcut to open the Run window, then type "regedit" and click OK within the Run window), navigate to the following path: "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" Within the System folder, locate "EnableLUA" double-click to open the file, change the value to "1", click OK, and finally, restart your computer. However, be aware that this may cause a problem where photos cannot be directly dragged into the workspace of Adobe Photoshop 2024.
[media]Can't believe this issue is still unresolved. I fixed it for my friend's son. No idea whether it was @RMSHE's solution about the enabling the "EnableLUA" entry (see below), or whether it was the fact that within the game I went into Settings ->Video and I decreased the Change Safe Zone value so that the safe zone it is at least 50 pixels from the edges of the screen, but it worked.
The strange thing is that the title bar and the Windows taskbar still appear when the game is paused or in the main menu. But while in game, this problem seems to be resolved ¯_(ツ)_/¯
I have had this issue for a little bit now, and at first, I was having a driver issue with my audio (Realtek USB Audio) and every time I launched Minecraft, my audio would stop working and I couldn't play videos either on streaming sites. I was able to do a work-around where I would launch the audio driver suite, and change the speaker config, for some reason that would have it restart. Since then, I have rolled back the driver, and that fixed the audio issue, however, before I got to that point, my Minecraft was doing the thing with the cursor going out of Minecraft and then forcing me out of the game, which was especially bad since I was in the Nether trying to build a bridge and was crouching in my Realm.... which doesn't pause the game but takes you out of it. HOWEVER, I have since found a comment on a Windows support post... in French and had it translated. I was able to have the issue resolved following the first option. My mouse keeps exiting the game screen in Full Screen. - Microsoft Community
Here is a screenshot of it translated already. I hope this helps!!! 🙂
I have included a screenshot below showing how the first option should look after being changed to say "Disabled".
[media][media]This started happening last week for me out of nowhere. EnableLUA is set to 1 and it was still not working until I restarted my PC. Then it fixed. And then it came back the next day!! Even after an update for Minecraft, this is still happening.
I am also having this bug now. I've tested all the known solutions and nothing seems to fix the issue. After restarting my computer the problem disappears for a total of about 5 minutes and then reappears in the middle of playing. The cursor doesn't lock to the screen, it just moves around in the background while playing. This is incredibly annoying and makes the game difficult if not impossible to play. As a PvPer, I am not going to be playing the game anymore until either a fix is found.
This bug appeared recently, all tricks to fix it do not work and I will not be playing until this is fixed.
I too am having this issue so am unable to turn right when playing the game. As much as I try, I just can't teach myself to only turn left. Please fix 🙂
I too have been having issues with this! I only noticed it more recently, and it's starting to get really annoying. I've even tried downloading third-party programs, but nothing seems to help.
we just got to the latest hotfix 1.21.44 and this bug is still not fixed please fix this mojang!
i cant play pvp with this bug its so annoying
I started experiencing this issue in the last few days of playing on my Win11 PC. When I started Minecraft after a few days of not playing on the realm I am a part of, I logged into the launcher and was prompted to update the generic Xbox app. I usually communicate with my friends through Discord so I bypass MOST of the features within the social aspect of the app itself.
Tonight I played around with the various software(s) and was able to maintain regular gameplay (locked cursor within the game screen) until I accessed the Xbox Social tab within the game bar. After my friends contacts loaded, the cursor lock seemed to cancel and the cursor was able to drift outside of the active playing window.
A restart of my PC appears to clear up the issue until I once again open the Xbox Game Bar and click on the Social tab.
I’ve been having the same issue it’s making the game unplayable please fix this soon
It happens to me if I press WIN+G to open the Game Bar once and right after the cursor will always leave the window.
[WORKAROUND TUTORIAL]
For the Mouse Pointer to stay in the window, we will change the "Allow edge swipe" policy setting and launch the game in Fullscreen mode on a single monitor.
Prerequisites: Local Group Policy Editor (not included in Windows Home)
Press WIN+R
Type "gpedit.msc" in the box
Press "OK"
Navigate to "Local Computer Policy>Computer Configuration>Administrative Templates>Windows Components>Edge UI>Allow edge swipe"
Press "Edit policy setting"
Select "Disabled"
Press "Apply"
Press WIN+P
Select "PC screen only"
Launch the Game
Press F11 (alternatively navigate to "Settings>Video>Fullscreen" and make sure it's switched on.)
Now the Title- and Taskbar should stay hidden with every mouse movement.
I think this is the only workaround that works for Windows Apps so the Mouse Pointer stays in the window.
If there is anything I forgot, something I can add or another way to achieve this, let me know in the comments or shoot me a message!
Please help me.. Any solutions?
@LuxxProd I see the correlation with the Xbox gamebar as well! Can the Minecraft devs actually fix this, or is this a problem that would require Microsoft to make changes to the Windows OS?
@Clay Thank you for confirming my point! I saw a comment by a user who claims, that Windows Applications which use UWP (Universal Windows Platform) misses an API feature to lock a mouse pointer to a window, or modifying the pointers position.
I saw that people also enabled LUA in the Registry Editor, but that didn't work for me as my value was already set to 1.
To check yours you'll need to open Registry Editor, navigate to the path "Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", press "EnableLUA", make sure the value is set to 1 and press "OK". After that you will be prompted to restart your computer.
Could this be related to the issue in which the mouse would unlock from a game after opening and closing Game bar? If so, this might be a Windows issue that was recently fixed in Build 26120.2222 for the Dev Channel.
@X1Crafts Any idea when these fixes/updates will be available for all Windows users?
Clay, this fix has not even reached the Beta or Release Preview channel, so its unlikely that we will see it roll out any time soon to either stable 23H2 or stable 24H2.
This appears to have something to do with Xbox Game Bar. Manually uninstalling it (I don't recommend this as you can no longer accept world invites without it), the Xbox app (I'm not sure if the Xbox app is related or not), and a few extra Xbox components, then rebooting, fixed the issue.
KB5046740 for 24H2 and KB5046732 for 23H2 include the fix for the issue causing mouses to unlock from a game when the Game Bar was opened and then closed. If this is in-fact and issue caused by Windows, then it should be fixed upon the installation of this update.
Please note that these updates might are still rolling out to Windows 11 users, so you might not receive them immediately.
Windows 11 updates will not resolve the issue for most people. Windows 10 is still the predominant operating system. So there will need to be a different path for resolution.
Can confirm, this bug only happened to me after I had opened Xbox Gamebar to add someone back that has just friend requested me. I looked everywhere for a solution and this is where it has gotten me to.
I am on Windows 11.
Restarting PC has fixed the issue as long as Xbox Gamebar is not reopened or closed again.
When using mouse and keyboard, the cursor doesn’t lock to the screen, I’ve checked several options to fix this and it’s the only game that has this issue. I see everywhere online of many people reporting this bug and still no fix. Taskbar pulls up if you move down too much, mouse goes to the second monitor if you move too much to the side. The Minecraft boarder pops up in “full screen” if you move it up too much. Very infuriating and no fix gives a permanent solution. I’ve checked solutions within the game, within windows settings and everything should be working but it’s not. The cursor will never lock on the screen and I see hundreds of reports all over Microsoft community and Reddit Minecraft communities with no permanent solutions.
I had this start happening when I got a second monitor. if I set it to duplicate/dont use the second monitor it fixes after sometime but that's not a good fix
I have this same issue aswell, been having it for months now and it makes it impossible to play Minecraft Bedrock.
I only get this glitch when I use the Xbox Game Bar. Try to avoid using it and dirrectly use the app instead until the issue is resolved.
Thank you for your report!
After consideration, the issue is being closed as Won't Fix.
Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behaviour, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.
If you'd like to post a suggestion or give further feedback, please visit the Minecraft Feedback Site or choose a link below.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki
I've noted that this issue is rather inconsistent. While I do not experience it myself, my friend has found it very difficult to play because the window fails to reset his mouse's position to the center of the window (Edit for clarity: As with the original poster, the mouse will exit the bottom of the window when looking down). This issue is still evident for him on fullscreen mode, though I am unsure if the original poster of this issue is still experiencing it with fullscreen.