Fix tray quit not saving window size

This commit is contained in:
Zarg 2025-01-27 00:27:25 +01:00
parent baa268317f
commit 3a29630d13

View file

@ -402,6 +402,11 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
break;
case ID_TRAY_QUIT:
if(g_mpv) mpv_command_string(g_mpv,"quit");
WINDOWPLACEMENT wp;
wp.length = sizeof(wp);
if (GetWindowPlacement(hWnd, &wp)) {
SaveWindowPlacement(wp);
}
DestroyWindow(hWnd);
break;
}