# How to fix a custom software cursor placement for high dpi monitor in PIE?

**URL:** <https://forums.unrealengine.com/t/how-to-fix-a-custom-software-cursor-placement-for-high-dpi-monitor-in-pie/435346>\
**Category:** Getting Started & Setup\
**Tags:** cursor, reproducible-bug, unreal-engine, high-resolution-scre, bug-report, UE4, question\
**Created:** [October 9, 2018, 9:47pm UTC](https://forums.unrealengine.com/t/how-to-fix-a-custom-software-cursor-placement-for-high-dpi-monitor-in-pie/435346 "2018-10-09T21:47:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NorlinGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/norlingames/32/495614_2.png) [@NorlinGames](https://forums.unrealengine.com/u/NorlinGames)\
**Post date:** [October 9, 2018, 9:47pm UTC](https://forums.unrealengine.com/t/how-to-fix-a-custom-software-cursor-placement-for-high-dpi-monitor-in-pie/435346/1 "2018-10-09T21:47:12Z")

</div>

When I’m trying to use a custom software cursor (with an UMG widget), it’s placed wrong in PIE mode (either inside the editor or in a new window).  
Please look for the screenshot (it’s a “Run in a new window” option, not a fullscreen).

 ![256096-screenshot-326.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/c/78c8d40c79b29e4388bca929f8e0f8ade439a1f1.jpeg)

With standalone game everything is ok.

If switch off the editor support for High DPI monitors – everything works good.

I have found several similar questions but no real solution (except an advice to set the compatibility mode for the UE4 executable).

My setup:

- win10 64bit
- 4k monitor
- UE4.20.3 (though the bug is reproduced at least since 4.19.2, and I think it was always there since the high dpi option introduced).

UPDATE: just checked the new 4.21.0 preview 1 – and the bug is fixed in it!

Steps to reproduce:

- create a new project
- Create an UMG widget (e.g. with a single Image element)
- open Project Settings
- Add a custom Software Widget, choose the widget
- run it in PIE
- try to move the cursor to the bottom right corner

---

<div class="post-metadata">

**Author:** ![NorlinGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/norlingames/32/495614_2.png) [@NorlinGames](https://forums.unrealengine.com/u/NorlinGames)\
**Post date:** [October 10, 2018, 11:19am UTC](https://forums.unrealengine.com/t/how-to-fix-a-custom-software-cursor-placement-for-high-dpi-monitor-in-pie/435346/2 "2018-10-10T11:19:18Z")

</div>

The issue is fixed in 4.21.0-Preview1.

[Here is the very specific cherry-pick of the fix code](https://github.com/norlin/UnrealEngine/commit/d31a5a6e08ebe190d0109a947e16ce1d79cddcf0), it can be applied for the 4.20.\* UE4 source (didn’t checked 4.19 or older versions).
