# Bug in SlateApplication::LocateWidgetInWindow and SlateApplication::TransformPointerEvent

**URL:** <https://forums.unrealengine.com/t/bug-in-slateapplication-locatewidgetinwindow-and-slateapplication-transformpointerevent/1720737>\
**Category:** C++\
**Tags:** unreal-engine, bug-report, CPP\
**Created:** [February 29, 2024, 4:58pm UTC](https://forums.unrealengine.com/t/bug-in-slateapplication-locatewidgetinwindow-and-slateapplication-transformpointerevent/1720737 "2024-02-29T16:58:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexpanter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alexpanter](https://forums.unrealengine.com/u/alexpanter)\
**Post date:** [February 29, 2024, 4:58pm UTC](https://forums.unrealengine.com/t/bug-in-slateapplication-locatewidgetinwindow-and-slateapplication-transformpointerevent/1720737/1 "2024-02-29T16:58:54Z")

</div>

I believe there is a bug in the two functions mentioned:

- `SlateApplication::LocateWidgetInWindow`
- `SlateApplication::TransformPointerEvent`

There is a thread here ([How to select on which monitor to display the game ?](https://forums.unrealengine.com/t/how-to-select-on-which-monitor-to-display-the-game/110390)), where I have spent probably a bit too long trouble-shooting this.

The functions in question use the display resolution of the primary display for calculating transformed mouse coordinates, which messes up UMG/Slate widgets when the application is being displayed on a secondary monitor (im my example, secondary monitor has different DPI scaling).

The problem is apparent when using Fullscreen window, NOT when using WindowedFullscreen.
