Can't specify custom window positions in 'windowed' mode
The problem appeared in UE4.16 and still exists (4.17.1).
Description: When packaged game is launched with custom location and size in windowed mode (for example with arguments "-windowed WinX=50 WinY=50 ResX=800 ResY=600") the window appears as specified but then immediately jumps to the center of screen. I actively used this feature with 4.15 but now I have to look for some workarounds.
Steps to reproduce: 1. Package any template project 2. Launch with arguments mentioned above 3. Check out if game window has specified location and dimensions
asked Aug 27 '17 at 07:34 PM in Bug Reports
This issue has been fixed in CL 3791597 and will be included in 4.19
answered Dec 06 '17 at 03:37 PM
I was able to reproduce the issue you are experiencing, and have logged a report for it here:
You can track the report's status as the issue is reviewed by our development staff. Please be aware that this issue may not be prioritized or fixed soon.
answered Nov 30 '17 at 02:12 PM
Thomas G ♦♦ STAFF
This issue persists in UE 4.19.2-4033788
edit: It does work if you specify the same resolution as specified in-game via the r.SetRes console command. If one does not specify a -WinX and -WinY, or if one specifies a different resolution, the resolution change will trigger the window to be reset to the centre of the screen.
This is therefore not a problem if one is using a fixed resolution. For myself however, I am developing an app to run on a whole host of different resolutions (from 1280x720 to 5120x2880). I have made a function to detect the native desktop resolution (or scaled in the case of 4k or 5k monitors), and I then r.SetRes to approx. 2/3 of the height of the screen (or closest 9:16 resolution). As such, having a fixed resolution is not an option for me.
Follow this question
Once you sign in you will be able to subscribe for any updates here