Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Some discussion is here: https://answers.unrealengine.com/questions/617643/commandline-winx-winy-dont-work-get-overridden.html

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

Product Version: UE 4.17
more ▼

asked Aug 27 '17 at 07:34 PM in Bug Reports

avatar image

11 1 2 4

avatar image Thomas G ♦♦ STAFF Nov 29 '17 at 09:35 PM

Hello Ayamashev,

I was unable to reproduce the issue you are experiencing. I have a couple of questions to help narrow down the issue you are experiencing.

  1. Where are you running the arguments for the packaged game?

  2. Has this issue occurred to you in 4.18 using the same repro steps?

Thank you!

avatar image ayamashev Nov 29 '17 at 10:48 PM

Hello Thomas,

I've just built the template FPS project in UE4.18.1 (Epic's version). No additional changes were made. I launch it with custom window size and location which are specified by arguments in command line. Watch the video below.

Expected behavior: the window remains in top left corner at location X=100,Y=100


I think this is good idea to place the window at center when you have '-windowed' argument only. As I said before this bug appeared in UE4.16.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

This issue has been fixed in CL 3791597 and will be included in 4.19

more ▼

answered Dec 06 '17 at 03:37 PM

avatar image

GrumpyOldBear2 STAFF
21 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hello again,

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.


more ▼

answered Nov 30 '17 at 02:12 PM

avatar image

Thomas G ♦♦ STAFF
7k 64 4 54

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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.

more ▼

answered May 09 '18 at 06:47 AM

avatar image

1 1 4

avatar image Sean L ♦♦ STAFF May 11 '18 at 01:55 PM

Hi Hrafnaass,

If you're still running into this issue, feel free to report it using the new Bug Submission Form and we'll be glad to take a look and follow up with you.



(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question