From Jan Šafránek:

if the message box is displayed when the main
window is in GDK_WINDOW_STATE_WITHDRAWN state (i.e. the main window is being
composed and it is not shown yet), the message box gets overlapped by the main
window when it's finally shown.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6559

svn path=/trunk/; revision=39800
This commit is contained in:
Anders Broman 2011-11-12 11:23:30 +00:00
parent 292a5b6f93
commit ec9a5ca9cb
1 changed files with 5 additions and 4 deletions

View File

@ -314,10 +314,11 @@ vsimple_dialog(ESD_TYPE_E type, gint btn_mask, const gchar *msg_format, va_list
state = gdk_window_get_state(gtk_widget_get_window(top_level));
}
/* If we don't yet have a main window or it's iconified, don't show the
dialog. If showing up a dialog, while main window is iconified, program
will become unresponsive! */
if (top_level == NULL || state & GDK_WINDOW_STATE_ICONIFIED) {
/* If we don't yet have a main window or it's iconified or hidden (i.e. not
yet ready, don't show the dialog. If showing up a dialog, while main
window is iconified, program will become unresponsive! */
if (top_level == NULL || state & GDK_WINDOW_STATE_ICONIFIED
|| state & GDK_WINDOW_STATE_WITHDRAWN) {
queued_message = g_malloc(sizeof (queued_message_t));
queued_message->type = type;