Borderless Window Mode / Full Screen Window Mode.

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

User avatar
StoneLegion
Filter Inserter
Filter Inserter
Posts: 687
Joined: Fri Sep 05, 2014 7:34 pm
Contact:

Borderless Window Mode / Full Screen Window Mode.

Post by StoneLegion »

I'm here to formally request a feature that is very minor and quite easy to add. I find that when I stream or record gameplay I like to play Window mode so I can easily tab in and out of the game. Depending on the recording software it sometimes is also required to play in a Window mode.

Thanks.

Edit: Here is an idea on what to look for: ALLEGRO_FULLSCREEN_WINDOW

hoho
Filter Inserter
Filter Inserter
Posts: 681
Joined: Sat Jan 18, 2014 11:23 am
Contact:

Re: Borderless Window Mode / Full Screen Window Mode.

Post by hoho »

Oh, yes please!

I almost always play in a mode that allows for easy alt+tab due to often having some other thing running on the other screen. When game is at fullscreen then doing anything in other usually causes issues or at minimum causes the game to minimize.

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

Re: Borderless Window Mode / Full Screen Window Mode.

Post by Rseding91 »

Factorio currently uses the ALLEGRO_FULLSCREEN_WINDOW option.

Full-screen is currently fullscreen windowed borderless.
If you want to get ahold of me I'm almost always on Discord.

User avatar
StoneLegion
Filter Inserter
Filter Inserter
Posts: 687
Joined: Fri Sep 05, 2014 7:34 pm
Contact:

Re: Borderless Window Mode / Full Screen Window Mode.

Post by StoneLegion »

Rseding91 wrote:Factorio currently uses the ALLEGRO_FULLSCREEN_WINDOW option.

Full-screen is currently fullscreen windowed borderless.

Confirmed haha.... I never bothered trying because 99% of the time they don't offer borderless without idk what you call it hardware fullscreen...

I feel like an Idiot for never trying.

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Borderless Window Mode / Full Screen Window Mode.

Post by bobingabout »

fullscreen borderless has some advantages, but also some disadvantages. Because it is window, rather than a fullscreen application, sometimes it forces always on top mode.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

Dune
Fast Inserter
Fast Inserter
Posts: 212
Joined: Tue Dec 12, 2017 4:27 am
Contact:

Re: Borderless Window Mode / Full Screen Window Mode.

Post by Dune »

This is a super old thread, but why start a new thread on the same subject?

I can't reveal any window that is open beneath factorio. I have to quit the game / crash the client (task manager force quit) to get at windows beneath.

Thanks!
Image

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

Re: Borderless Window Mode / Full Screen Window Mode.

Post by posila »

Dune wrote:
Thu Feb 20, 2020 8:40 am
This is a super old thread, but why start a new thread on the same subject?

I can't reveal any window that is open beneath factorio. I have to quit the game / crash the client (task manager force quit) to get at windows beneath.

Thanks!
I don't have this issue on any computer I have access to, but you can workaround it by enabling "Minimize on focus loss" in graphics settings. That will make alt+tab to work essentially the same as it would with exclusive fullscreen.

Honktown
Smart Inserter
Smart Inserter
Posts: 1038
Joined: Thu Oct 03, 2019 7:10 am
Contact:

Re: Borderless Window Mode / Full Screen Window Mode.

Post by Honktown »

Dune wrote:
Thu Feb 20, 2020 8:40 am
This is a super old thread, but why start a new thread on the same subject?

I can't reveal any window that is open beneath factorio. I have to quit the game / crash the client (task manager force quit) to get at windows beneath.

Thanks!
Is the game in "actual" focus? I've noticed if I alt-tab during certain parts of the game (start-up exactly, I believe), any time I click on something the game pops up again. Turns out the game was never in "full" focus: if I click inside the game screen once, anywhere, then alt-tab, it works.
I have mods! I guess!
Link

User avatar
MakeItGraphic
Fast Inserter
Fast Inserter
Posts: 237
Joined: Sat Jan 06, 2018 7:53 am
Contact:

Re: Borderless Window Mode / Full Screen Window Mode.

Post by MakeItGraphic »

Honktown wrote:
Fri Feb 21, 2020 5:46 am
Dune wrote:
Thu Feb 20, 2020 8:40 am
This is a super old thread, but why start a new thread on the same subject?

I can't reveal any window that is open beneath factorio. I have to quit the game / crash the client (task manager force quit) to get at windows beneath.

Thanks!
Is the game in "actual" focus? I've noticed if I alt-tab during certain parts of the game (start-up exactly, I believe), any time I click on something the game pops up again. Turns out the game was never in "full" focus: if I click inside the game screen once, anywhere, then alt-tab, it works.
I've had similar issue: viewtopic.php?f=49&t=81429

It's not just Factorio a lot of games have a hard time when going true fullscreen back to windows. But this is the first game I've had the inverse of what I all ways see. A lot of games when unfocused will begin to hang, or unload. Factorio is pretty solid that way aside from the whole zooming in, then pause to deskop if that's still a thing.

But it does have a lot of issues with focus on startup like you said. It gets stuck in the state alwaysontop, and it's because when you alt-tab out the game it is switching to an active window. And since it's in full-screen it forces set-focus and creates a conflict of it being stuck on top because it was unable to switch back automatically (which is proper behaviour, otherwise it'd be like you had a virus or something aha just keeps popping back up at you).

It would be nice if the game could ignore it's startup process in regards to container management and just flash on the taskbar or something when it's loaded.

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Borderless Window Mode / Full Screen Window Mode.

Post by Optera »

I've had similar issues, especially when i want to switch to a window behind Factorio during loading.
viewtopic.php?f=23&t=66206

My solution was to set Factorio to window mode and let borderless gaming remove the borders.

User avatar
MakeItGraphic
Fast Inserter
Fast Inserter
Posts: 237
Joined: Sat Jan 06, 2018 7:53 am
Contact:

Re: Borderless Window Mode / Full Screen Window Mode.

Post by MakeItGraphic »

I'll check that out thanks Optera!

Edit: with regards to applications with the flag alwaysontop I agree Factorio does not play nice with them at all. Applications often become loaded behind the game regardless of method used to set alwaysontop.

Borderless Gaming works, low memory usage 13mb but the CPU is a bit high 3% average. Is actually running higher then the game itself on the menu at 1.3%.

EDIT: I checked github reported isuses, it is something they're aware of. So I dug into the settings a bit. There are ways to decrease the CPU usage but it causes eradicate app behaviour (will fix the CPU issue for a bit, then just goes nuts and hangs the app). However you can just close the application after it does its job. The set parameters stick.

I think this is something factorio devs can add natively to the game.

EDIT:

There must be a way to script AHK to do without Borderless Gaming. It's just a POS.

Code: Select all

#SingleInstance force
#UseHook On
F12::
WinGet, TempWindowID, ID, A
If (WindowID != TempWindowID)
{
  WindowID:=TempWindowID
  WindowState:=0
}
If (WindowState != 1)
{
  WinGetPos, WinPosX, WinPosY, WindowWidth, WindowHeight, ahk_id %WindowID%
  WinSet, Style, -0xC40000, ahk_id %WindowID%
  WinMove, ahk_id %WindowID%, , 0, 0, A_ScreenWidth, A_ScreenHeight
  ;Hide Windows Task Bar and Start Button. (Remove the following two lines if you don't want that behaviour)
  WinHide ahk_class Shell_TrayWnd
  WinHide Start ahk_class Button
}
Else
{
  WinSet, Style, +0xC40000, ahk_id %WindowID%
  WinMove, ahk_id %WindowID%, , WinPosX, WinPosY, WindowWidth, WindowHeight
  ;Show the task bar again
  WinShow ahk_class Shell_TrayWnd
  WinShow Start ahk_class Button
}
WindowState:=!WindowState
return
@optera above script works for single monitor usage

Dune
Fast Inserter
Fast Inserter
Posts: 212
Joined: Tue Dec 12, 2017 4:27 am
Contact:

Re: Borderless Window Mode / Full Screen Window Mode.

Post by Dune »

Thanks for all the responses, yes it's on startup. Sorry, that's when I often am opening the game and at the same time my streaming software (which doesn't play nice and open on my 2nd monitor where I always put it.) Good to know I can do it after the game loads and I've clicked into factorio.
Image

Post Reply

Return to “Ideas and Suggestions”