Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Utils::CloseApplication should send WM_QUERYENDSESSION and WM_ENDSESSION #3778
Utils::CloseApplication is nice, but it should follow Restart Manager guidelines for closing applications. E.g., it should send WM_QUERYENDSESSION to determine if application supports closing, then WM_ENDSESSION in case it does and WM_CLOSE only as a fallback method.
Currently, the custom action only sends WM_CLOSE message. This causes applications with "close to tray" ability to stay opened.