mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Merge pull request #1115 from Soreepeong/fix/borderless-fullscreen-window-restored-fix
This commit is contained in:
commit
d5e3fc9872
1 changed files with 4 additions and 1 deletions
|
|
@ -198,7 +198,10 @@ void xivfixes::prevent_devicechange_crashes(bool bApply) {
|
|||
}
|
||||
|
||||
// While at it, prevent game from entering restored mode if the game does not have window frames (borderless window/fullscreen.)
|
||||
if (uMsg == WM_SIZE && wParam == SIZE_RESTORED && (GetWindowLongW(hWnd, GWL_STYLE) & WS_POPUP))
|
||||
if (uMsg == WM_SIZE && wParam == SIZE_RESTORED
|
||||
&& (GetWindowLongW(hWnd, GWL_STYLE) & WS_POPUP) // Is the game not in windowed mode?
|
||||
&& !((GetKeyState(VK_LWIN) | GetKeyState(VK_RWIN)) & 0x8000) // Allow Win+Shift+Left/Right key combinations to temporarily restore the window to let it move across displays.
|
||||
)
|
||||
return ShowWindow(hWnd, SW_MAXIMIZE);
|
||||
|
||||
return s_pfnGameWndProc(hWnd, uMsg, wParam, lParam);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue