[0.16.51] Factorio fulscreen windows doesn't upsize when moving between displays with different resolution

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
mexmer
Filter Inserter
Filter Inserter
Posts: 869
Joined: Wed Aug 03, 2016 2:00 pm
Contact:

[0.16.51] Factorio fulscreen windows doesn't upsize when moving between displays with different resolution

Post by mexmer »

while there is workaround for this, it's still in category of mild annoyances.

let's say i have notebook with HD screen, and connected UHD monitor. i run factorio in fullscreen mode, and it starts on primary display (which is notebook screen), then i use keyboard shortcut to move window to other display (window + shirt + left/right). factorio stays in it's bordereless window mode (because that's what fullscreen on factorio does), but since it's in this mode, i cannot move it. it's alligned to topleft corner of UHD display.

funny thing is, that when you move factorio from UHD to HD with keyboard shortcut, it does downsize window, it just doesn't upsize when moving to higher resolution display.

workaround is to use ALT+ENTER to enter windowed mode, then either resize or move, or just use alt+enter again to enter "fullscreen" with new resolution.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.16.51] Factorio fulscreen windows doesn't upsize when moving between displays with different resolution

Post by Klonan »

I thought it might be fixed with 0.17 changes, but I can reproduce the issue exactly as you describe


User avatar
TruePikachu
Filter Inserter
Filter Inserter
Posts: 978
Joined: Sat Apr 09, 2016 8:39 pm
Contact:

Re: [0.16.51] Factorio fulscreen windows doesn't upsize when moving between displays with different resolution

Post by TruePikachu »

I'd think the issue is possibly with Windows. If you maximize the window for some other program, and use the same keyboard command to move it to a larger display, does it also resize?

User avatar
mexmer
Filter Inserter
Filter Inserter
Posts: 869
Joined: Wed Aug 03, 2016 2:00 pm
Contact:

Re: [0.16.51] Factorio fulscreen windows doesn't upsize when moving between displays with different resolution

Post by mexmer »

TruePikachu wrote:
Sun Nov 18, 2018 4:13 am
I'd think the issue is possibly with Windows. If you maximize the window for some other program, and use the same keyboard command to move it to a larger display, does it also resize?
some programs do, some don't (for example chrome, firefox, or all microsoft office products resize properly)
and no. it's not issue with windows. many programs use own handling for size change, especially those running in borderless mode (eg. fake fullscreen).

if you overriding onsize change behavior, you need to handle everything.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13198
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.16.51] Factorio fulscreen windows doesn't upsize when moving between displays with different resolution

Post by Rseding91 »

mexmer wrote:
Sun Nov 18, 2018 9:07 am
TruePikachu wrote:
Sun Nov 18, 2018 4:13 am
I'd think the issue is possibly with Windows. If you maximize the window for some other program, and use the same keyboard command to move it to a larger display, does it also resize?
some programs do, some don't (for example chrome, firefox, or all microsoft office products resize properly)
and no. it's not issue with windows. many programs use own handling for size change, especially those running in borderless mode (eg. fake fullscreen).

if you overriding onsize change behavior, you need to handle everything.
As far as I've seen with the old vs new logic: it's just "you need to handle everything". You don't get *any* logic built in when you make a window except "it has the exit button/minimize, maximize" when not borderless.
If you want to get ahold of me I'm almost always on Discord.

User avatar
mexmer
Filter Inserter
Filter Inserter
Posts: 869
Joined: Wed Aug 03, 2016 2:00 pm
Contact:

Re: [0.16.51] Factorio fulscreen windows doesn't upsize when moving between displays with different resolution

Post by mexmer »

Rseding91 wrote:
Mon Nov 19, 2018 10:15 am
mexmer wrote:
Sun Nov 18, 2018 9:07 am
TruePikachu wrote:
Sun Nov 18, 2018 4:13 am
I'd think the issue is possibly with Windows. If you maximize the window for some other program, and use the same keyboard command to move it to a larger display, does it also resize?
some programs do, some don't (for example chrome, firefox, or all microsoft office products resize properly)
and no. it's not issue with windows. many programs use own handling for size change, especially those running in borderless mode (eg. fake fullscreen).

if you overriding onsize change behavior, you need to handle everything.
As far as I've seen with the old vs new logic: it's just "you need to handle everything". You don't get *any* logic built in when you make a window except "it has the exit button/minimize, maximize" when not borderless.
it's quite possible, since i lately work with old MFC UI, where everything needs to be handled, if you use own graphic draw ... but if you don't, you can leave it to windows default behavior ... i might have expected too much :D

posila
Factorio Staff
Factorio Staff
Posts: 5201
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.16.51] Factorio fulscreen windows doesn't upsize when moving between displays with different resolution

Post by posila »

Alt + Enter, move window, Alt + Enter is intended way to do it.

I tried 3 Microsoft applications - Edge, Windows Media Player and Age of Empires Definitive Edition. None of them allowed to move the window using Win + Shift + Arrow shortcut when in fullscreen, but none of them seem to actually use borderless fullscreen. Even Edge minimizes itself when other application on the same monitor gains focus.

I tried also Starcraft 2 and it behaves same way Factorio does.

Interestingly Win + Arrow are blocked when in borderless fullscreen - both in Allegro and SDL, but I haven't found code blocking it, so it might be because style of the window is WM_POPUP when borderless fullscreen - I suppose so the window can cover task bar.
The main problem comes from libraries assuming the window can't be moved when in bordeless fullscreen, and Windows not having concept of "borderless fullscreen" for non-UWP applications (don't know how UWP handles it) - it just sees a window of some fixed size (it can't be even in maximized, because it wouldn't cover task bar) so it moves it to different monitor retaining that size.

We'll have to bite a bullet here and handle it ourselves, but I don't like it. I already forgot Win + Shift + Arrow is a thing twice.

User avatar
mexmer
Filter Inserter
Filter Inserter
Posts: 869
Joined: Wed Aug 03, 2016 2:00 pm
Contact:

Re: [0.16.51] Factorio fulscreen windows doesn't upsize when moving between displays with different resolution

Post by mexmer »

hmm, i will send ticket to blizzard, have not played SC2 for a while.
i know, they fixed it for diablo, like year ago or so (before necro came out).

posila
Factorio Staff
Factorio Staff
Posts: 5201
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.16.51] Factorio fulscreen windows doesn't upsize when moving between displays with different resolution

Post by posila »

I tried it in Diablo 3 too (before trying it in Starcraft) and it worked there the same way as in Factorio and Starcraft ... But Diablo leaves bad taste in people's mouth lately, so I didn't mention it.

User avatar
mexmer
Filter Inserter
Filter Inserter
Posts: 869
Joined: Wed Aug 03, 2016 2:00 pm
Contact:

Re: [0.16.51] Factorio fulscreen windows doesn't upsize when moving between displays with different resolution

Post by mexmer »

this is weird, diablo 3 resize works for me both ways (UHD connected to 1050Ti, FHD - actually 1920x1200 - connected to onboard gpu).

i reported when there was that issue with having "empty" space from windows toolbar, after move ...

anyways, blizzard games support doesn't bellong here :mrgreen: although they might hire you. ;)

Rseding91
Factorio Staff
Factorio Staff
Posts: 13198
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.16.51] Factorio fulscreen windows doesn't upsize when moving between displays with different resolution

Post by Rseding91 »

I'm going to move this to minor issues.
If you want to get ahold of me I'm almost always on Discord.

posila
Factorio Staff
Factorio Staff
Posts: 5201
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.16.51] Factorio fulscreen windows doesn't upsize when moving between displays with different resolution

Post by posila »

Maybe fixed for 0.17.42

If there was an easy, obvious way to block the shortcut I would do that, but I don't want to create low level keyboard hook just to block system shortcuts, so it was easier to just attempt to handle moving of fullscreen window.

Post Reply

Return to “Resolved Problems and Bugs”