Do not try to engage X and whatnot in case of one-window list

master
Yevgen Muntyan 2007-07-31 08:02:26 -05:00
parent ca119c9d44
commit 6f50086710
1 changed files with 3 additions and 0 deletions

View File

@ -334,6 +334,9 @@ _moo_get_top_window (GSList *windows)
g_return_val_if_fail (windows != NULL, NULL);
if (!windows->next)
return windows->data;
for (l = windows; l != NULL; l = l->next)
{
if (!GTK_IS_WINDOW (l->data))