Fix bug 62201

This commit is contained in:
Oleg Korshul
2023-05-16 17:30:50 +03:00
parent 6c1b2f7ff3
commit 6a0bcf2d2d

View File

@ -36,11 +36,20 @@
int main( int argc, char *argv[] )
{
#ifdef _WIN32
Core_SetProcessDpiAwareness();
Core_SetProcessDpiAwareness();
// Set non-browser processes up to be killed by the system after the
// browser goes away. The browser uses the default shutdown order, which
// is 0x280. Note that lower numbers here denote "kill later" and higher
// numbers mean "kill sooner". This gets rid of most of those unsightly
// sad tabs on logout and shutdown.
const int kNonBrowserShutdownPriority = 0x280;
::SetProcessShutdownParameters(kNonBrowserShutdownPriority - 1, SHUTDOWN_NORETRY);
#endif
CApplicationCEF application;
CAscApplicationManager manager;
CApplicationCEF application;
CAscApplicationManager manager;
return application.Init_CEF(&manager, argc, argv);
return application.Init_CEF(&manager, argc, argv);
}