After checking the option to make the game window have a resizable it still wasn’t resizable. The checkbox did nothing.
I compared the LinuxWindow.cpp
file with WindowsWindow.cpp
and found that this if statement in LinuxWindow.cpp
if ( !Definition->HasOSWindowBorder )
contains the code that would set the resizable border.
I moved it and the 2 other window style checks outside the if statement making the part look like this:
if ( !Definition->HasOSWindowBorder )
{
WindowStyle |= SDL_WINDOW_BORDERLESS;
}
if (Definition->IsTopmostWindow)
{
WindowStyle |= SDL_WINDOW_ALWAYS_ON_TOP;
}
if (!Definition->AppearsInTaskbar)
{
WindowStyle |= SDL_WINDOW_SKIP_TASKBAR;
}
if (Definition->IsRegularWindow && Definition->HasSizingFrame)
{
WindowStyle |= SDL_WINDOW_RESIZABLE;
}
After recompiling the engine and launching my game again the game window had a resizable border. So I think this fixed it without breaking anything, at least I didn’t notice anything being broken afterwards.
I’m using the release branch from github. I didn’t create a pull request because I didn’t want to start switching branches and spend forever recompiling afterwards.
I’d be really happy if this could be fixed for future releases, if it isn’t already.
Edit: I’ve done a pull request for my changes here: https://github.com/EpicGames/UnrealEngine/pull/3578