Checking the option for Allow Window Resize in Project Settings allows a the borders of a standalone window to be grabbed and used to resize the window. This does not behave the same on Linux and the standalone window cannot be adjusted.
Suggested Fix:
User reported changing LinuxWindow.cpp (line 104 in 4.16.1) to the following will make Allow Window Resize to work on Linux
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; }
Result:
The mouse does not change to the resize widget and the window cannot be resized
Expected:
The game window can be resized with the mouse when Allow Window Resize is checked
Head over to the existing Questions & Answers thread and let us know what's up.
1 |
Component | UE - Platform - Linux |
---|---|
Affects Versions | 4.15.3, 4.16.1 |
Target Fix | 4.21 |
Created | Jun 8, 2017 |
---|---|
Resolved | Jul 26, 2018 |
Updated | Oct 2, 2018 |