Do not try to engage X and whatnot in case of one-window list
parent
ca119c9d44
commit
6f50086710
|
@ -334,6 +334,9 @@ _moo_get_top_window (GSList *windows)
|
||||||
|
|
||||||
g_return_val_if_fail (windows != NULL, NULL);
|
g_return_val_if_fail (windows != NULL, NULL);
|
||||||
|
|
||||||
|
if (!windows->next)
|
||||||
|
return windows->data;
|
||||||
|
|
||||||
for (l = windows; l != NULL; l = l->next)
|
for (l = windows; l != NULL; l = l->next)
|
||||||
{
|
{
|
||||||
if (!GTK_IS_WINDOW (l->data))
|
if (!GTK_IS_WINDOW (l->data))
|
||||||
|
|
Loading…
Reference in New Issue