Reported in issue 13143: Opening the F8 menu prevents vncviewer from terminating when it loses the Xvnc connection. Not surprising as the menu opens its own main loop. We've had similar issues in tlclient.
Tested with client build 2284 on Fedora 33 and server build 2266 on Ubuntu 20.04, and this issue is still present. Scenario ======== 1. Log in to the session. 2. Log out. When the window with "You will be logged out in 60 seconds" show up, leave it alone. 3. Press F8 to open the menu. 4. Wait for the log out to happen. 5. The session does the log out animation, but the client window is still open. If you press F8 or the list items in the menu, the window will close.
Added dependency on bug 8337 as this issue stems from FLTK limitations. The F8 menu uses Fl_Menu_Button, which operates synchronously, blocking the program until the menu is closed. This makes it impractical to handle events like losing the Xvnc connection. Qt's asynchronous capabilities would resolve this.