# UE 5.8.1 Linux Wayland: Slate mouse hit testing uses desktop-global coordinates on offset monitor 

**URL:** <https://forums.unrealengine.com/t/ue-5-8-1-linux-wayland-slate-mouse-hit-testing-uses-desktop-global-coordinates-on-offset-monitor/2747109>\
**Category:** Issues and Bug Reporting (Unreal Engine)\
**Tags:** unreal-engine\
**Created:** [August 28, 2026, 3:37pm UTC](https://forums.unrealengine.com/t/ue-5-8-1-linux-wayland-slate-mouse-hit-testing-uses-desktop-global-coordinates-on-offset-monitor/2747109 "2026-08-28T15:37:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KaiStarkk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KaiStarkk](https://forums.unrealengine.com/u/KaiStarkk)\
**Post date:** [August 28, 2026, 3:37pm UTC](https://forums.unrealengine.com/t/ue-5-8-1-linux-wayland-slate-mouse-hit-testing-uses-desktop-global-coordinates-on-offset-monitor/2747109/1 "2026-08-28T15:37:43Z")

</div>

### Summary

On native Wayland, the Unreal Editor receives SDL desktop-global mouse coordinates when the editor window is on a monitor with a non-zero virtual origin. Slate hit testing uses window-local geometry, so mouse clicks do not hover or activate any editor widgets.

### What Type of Bug are you experiencing?

Editor

### Steps to Reproduce

1. Run Unreal Editor 5.8.1 on Linux using the native Wayland SDL3 backend.
2. Configure a monitor with a non-zero virtual desktop origin; reproduced with a 3840x2160 Sunshine output at (9999,9999).
3. Put the editor window on that monitor.
4. Move the physical mouse over an editor control such as File and click.
5. Observe that the control neither hovers nor activates, despite the window receiving the mouse event.

### Expected Result

Slate should convert the platform mouse position into the same coordinate space used by the target window hit-test grid. Hover and click should activate the control under the physical pointer regardless of the monitor virtual origin.

### Observed Result

The SDL event reaches FLinuxApplication, but Slate receives the desktop-global position with the monitor origin still included. In the reproduction, a physical File click was processed near (10077,10013), while the File button hit-test geometry was near (77,11.5). The resulting widget path was empty. A direct Slate click injected at (77,11.5) correctly activated SButton.

### Affects Versions

5.8

### Platform(s)

Linux

### Additional Notes

Relevant source path in the installed 5.8.1 source: FLinuxApplication::ProcessDeferredMessage invalidates FLinuxCursor on SDL\_EVENT\_MOUSE\_MOTION. The editor-only branch does not repopulate the cursor cache from motionEvent.x/y. FLinuxCursor::GetPosition then calls SDL\_GetGlobalMouseState, and OnMouseDown forwards the event while Slate queries that global position. Files: Engine/Source/Runtime/ApplicationCore/Private/Linux/LinuxApplication.cpp and Engine/Source/Runtime/ApplicationCore/Private/Linux/LinuxCursor.cpp. The failure is a consistent coordinate-space offset, not a focus or compositor problem: physical input reaches the Unreal Linux platform layer and Slate, but the hit-test route is empty. The offset exactly matches the monitor virtual origin.
