Merge branch 'windows_aero_snap' into 'master'

Fix windows aero snap with borderless window (#5394)

See merge request OpenMW/openmw!1370
macos-builds-only-for-openmw
psi29a 3 years ago
commit 9b7dfcac6b

@ -19,6 +19,7 @@
Bug #5207: Loose summons can be present in scene
Bug #5377: console does not appear after using menutest in inventory
Bug #5379: Wandering NPCs falling through cantons
Bug #5394: Windows snapping no longer works
Bug #5453: Magic effect VFX are offset for creatures
Bug #5483: AutoCalc flag is not used to calculate spells cost
Bug #5508: Engine binary links to Qt without using it

@ -546,6 +546,10 @@ void OMW::Engine::createWindow(Settings::Manager& settings)
if(fullscreen)
flags |= SDL_WINDOW_FULLSCREEN;
// Allows for Windows snapping features to properly work in borderless window
SDL_SetHint("SDL_BORDERLESS_WINDOWED_STYLE", "1");
SDL_SetHint("SDL_BORDERLESS_RESIZABLE_STYLE", "1");
if (!windowBorder)
flags |= SDL_WINDOW_BORDERLESS;

Loading…
Cancel
Save