I have an application which on the first load it will show a modal window for user login (a borderless window). Now when the user wants to minimize the application by clicking the minimize button of the main window, it can't be done cause the main window is locked by the modal window. When the user tries to click the application taskbar it still won't minimize.
How can I allow the application to be minimized when a modal is showing (using the main window taskbar)?