# \[UE5.8\] Cursor lock rect reaches window edge in windowed mode, allowing clicks on the resize border (FPS template)

**URL:** <https://forums.unrealengine.com/t/ue5-8-cursor-lock-rect-reaches-window-edge-in-windowed-mode-allowing-clicks-on-the-resize-border-fps-template/2838582>\
**Category:** Issues and Bug Reporting (Unreal Engine)\
**Tags:** UE-5, mouse-cursor, unreal-engine, slate\
**Created:** [October 8, 2026, 12:30pm UTC](https://forums.unrealengine.com/t/ue5-8-cursor-lock-rect-reaches-window-edge-in-windowed-mode-allowing-clicks-on-the-resize-border-fps-template/2838582 "2026-10-08T12:30:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sakuraba\_intense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sakuraba\_intense](https://forums.unrealengine.com/u/sakuraba_intense)\
**Post date:** [October 8, 2026, 12:30pm UTC](https://forums.unrealengine.com/t/ue5-8-cursor-lock-rect-reaches-window-edge-in-windowed-mode-allowing-clicks-on-the-resize-border-fps-template/2838582/1 "2026-10-08T12:30:05Z")

</div>

### Summary

In UE 5.8, when the game runs in windowed mode with the mouse captured and hidden (e.g., the First Person template), the invisible cursor can reach the outermost pixel of the window. Clicking there is handled by the OS as a click on the window’s resize border: the cursor briefly appears, game input stops responding, and the window can even be resized by dragging. This does not happen in 5.7.

### What Type of Bug are you experiencing?

UI / Tools

### Steps to Reproduce

1. Create a new project from the First Person template in UE 5.8.
2. Package the project (Development, Win64).
3. Launch the packaged build in windowed mode (e.g., `-windowed -ResX=1280 -ResY=720`).
4. Keep turning the camera to the right until the hidden cursor reaches the right edge of the window.
5. Click the left mouse button.

### Expected Result

The click fires the weapon, and the cursor stays locked inside the viewport (as in 5.7).

### Observed Result

The cursor briefly appears, input stops working, and dragging resizes the window.

### Affects Versions

5.8

### Platform(s)

Windows

### Video

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/0/930a5924bbc17c7310feb4411f5ef2cdd0b874ed.jpeg "UE 5.8 vs 5.7: Captured cursor escapes to window resize border in windowed mode") ](https://www.youtube.com/watch?v=YvxuZI_1Bt8)

### Additional Notes

**Possibly related change**  
This may be related to CL 51272765 (“[Slate] Fix cursor-locking and zone determination edge cases”, UE-365722). As far as I can tell, this change removed `ClipRectAdjustment` from `FSlateUser::LockCursorInternal`. In 5.7, the clip rect was shrunk by 1 pixel for windows that are not borderless game windows, which may have been preventing the cursor from reaching the window’s resize border.

**Environment**

- Unreal Engine: 5.8 , compared with 5.7
- OS: Windows11

### Update

I bisected this to CL 51272765 (UE-365722). The commit right before it does not reproduce the issue. The problem is still present in ue5-main.

I submitted a fix as a pull request:  
[[Slate] Fix cursor lock rect reaching the window resize border.- #15260](https://github.com/EpicGames/UnrealEngine/pull/15260)

The fix restores the 1px inset (`ClipRectAdjustment`) that was removed in that change, applied only to windows with an OS border. Borderless windows are unaffected, and the rounding fix from UE-365722 is kept.

If you need a workaround in the meantime, you can apply the same change locally in `FSlateUser::LockCursorInternal` (SlateUser.cpp).
