mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-19 12:59:58 -04:00
Go fullscreen at start again when the window is raised
This commit is contained in:
@@ -395,10 +395,12 @@ static void window_main(void *arg) {
|
|||||||
outer_size(g_hwnd, cw, ch, &ow, &oh);
|
outer_size(g_hwnd, cw, ch, &ow, &oh);
|
||||||
SetWindowPos(g_hwnd, HWND_BOTTOM, 0, 0, ow, oh, SWP_NOMOVE | SWP_NOACTIVATE | SWP_SHOWWINDOW);
|
SetWindowPos(g_hwnd, HWND_BOTTOM, 0, 0, ow, oh, SWP_NOMOVE | SWP_NOACTIVATE | SWP_SHOWWINDOW);
|
||||||
if (!background) {
|
if (!background) {
|
||||||
|
// Pending before the raise: the activation it gets is the first WM_ACTIVATEAPP, which takes the fullscreen
|
||||||
|
// setting; set after it, fullscreen waited for the next activation and the game started in a window
|
||||||
|
g_fs_pending = cfg_fullscreen();
|
||||||
raise_window(g_hwnd); // a frontend's player may have no way to reach a window left behind
|
raise_window(g_hwnd); // a frontend's player may have no way to reach a window left behind
|
||||||
FLASHWINFO fw = {.cbSize = sizeof fw, .hwnd = g_hwnd, .dwFlags = FLASHW_TRAY | FLASHW_TIMERNOFG};
|
FLASHWINFO fw = {.cbSize = sizeof fw, .hwnd = g_hwnd, .dwFlags = FLASHW_TRAY | FLASHW_TIMERNOFG};
|
||||||
FlashWindowEx(&fw);
|
FlashWindowEx(&fw);
|
||||||
g_fs_pending = cfg_fullscreen();
|
|
||||||
}
|
}
|
||||||
note_applied();
|
note_applied();
|
||||||
refresh_rate_update(g_hwnd, 1);
|
refresh_rate_update(g_hwnd, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user