http://bugs.winehq.org/show_bug.cgi?id=9735
Summary: Wine supplants system menu in child window title bars Product: Wine Version: 20050830 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: critical Priority: P2 Component: wine-debug AssignedTo: wine-bugs@winehq.org ReportedBy: frogbarf@telus.net
Pegasus 4.41 (and other versions) uses child windows to display specific categories of information relating to email. Examples: a list of all email folders. All the messages in a specific email folder. A display of email messages waiting on the smtp server. A message editor for composition of a new outgoing email.
Each child window is controlled by a system menu at the left of the title bar, and three icons at the right of the title bar. The system menu normally includes move, restore (to previous non-maximized size) minimize, maximize, close, switch (to another child window). It also lists keyboard shortcuts for many of these actions. The three icons are minimize, restore or maximize, and close.
Running Pegasus as a window-managed application, Wine replaces the child window system menu with one of its own in which the shortcut for close is ALT-F4. In native Windows operation, the child window close shortcut is CTRL-F4.
If you key CTRL-F4 in a child window, nothing happens. It is not a valid shortcut under Wine.
If you key ALT-F4 in a child window, the program itself exits, not just the single child window.
If you click the close/exit icon [X] in a child window the entire program exits.
Evidently the exit icon is linked to the close option in the child window's system menu.
It also appears that some child windows that close automatically also use the close option listed in their system menu.
It isn't clear to me if the bug is (a) that Wine supplants the native child window menus or (b) that Wine does not implement a CTRL-F4 (close child window) shortcut or (c) that the Wine child window menu does not include CTRL-W for "close".
The effect is that once you open a child window in Pegasus, you cannot reliably close it without exiting Pegasus altogether; also that auto-closing of some child windows causes program exit.
In unmanaged mode, bug #1798 causes its own problems.
CTRL-F4 is the Windows equivalent to CTRL-W, which has no effect.
This behavior is not entirely consistent; sometimes you can use the [X] exit icon to successfully exit a single child window without shutting down the entire program. I can't tell if this is true inconsistency or because some child windows are (perhaps) programmed differently from others.