On SPARC Solaris, using GNOME, when the tk_dialog appears, it has a
dialog's window manager frame . There's an "X" for dismissing the
widget that is displayed.
A user tried to use the X to dismiss the dialog, but because tk_dialog
had the grab, they were unsuccessful.
Shouldn't tk_dialog use wm overrideredirect to get rid of the frame
title bar? Otherwise, the user is led to believe there is a way to
dismiss the widget where there is in fact no way to do that.
wm override would cause the entire wm managed frame to disappear, but
that is not what tk_dialog does. It pops up a modal, complete with wm
frame, for user interaction. It should have the wm [X] to close it,
and that should work.
Jeff
Okay, then what we are seeing is a bug rather than an oversight.
Thanks - I'll report it.
So I misspoke. Checking the code, tk_dialog explicitly does this:
wm protocol $w WM_DELETE_WINDOW { }
So it will ignore the [X]. I would recommend instead tklib
widget::dialog, but that would require code changes.
Jeff