On 07/24/13 11:54, Artem Ananiev wrote:
Unminimizable windows are annoying. If we disable that, we'll likely
get
some weirdness, e.g. Win+M or Win+D on Windows will leave the window on
the desktop, which is not what users expect.
Minimizing a modal dialog does not achieve much because the owning
window is still blocked. Unless that window is minimized along. At least
Windows usually disables the window decoration buttons of the owning
window though.
Indeed. I was thinking about implementing the behavior that OS X
provides for native windows: if you iconify an owned modal dialog, its
owner gets iconified as well. This looks very convenient. We might try
to implement this in Glass for other platforms as well. Or
alternatively, we could provide an API to disable window iconification.
Modal dialogs are (or should be) used to get some input from user.
Window closing confirmation is a good example. Application cannot
proceed further, until it have the input, so it doesn't make sense to
minimize the modal dialog and leave application in the "suspended" state.
This sounds reasonable. As I said, we can go and implement the
setMinimizable(boolean) in Glass/FX. The spec would just state that in
rare cases on some platforms this hint may not be taken into account by
the native OS GUI toolkit (I mean some strange X11 window managers here).
--
best regards,
Anthony