screen: Fix a potentially endless loop
We always need to move the list pointer forward. https://bugzilla.gnome.org/show_bug.cgi?id=693475
This commit is contained in:
parent
d482590c84
commit
380154af0a
1 changed files with 3 additions and 4 deletions
|
@ -1209,10 +1209,9 @@ meta_screen_foreach_window (MetaScreen *screen,
|
|||
{
|
||||
MetaWindow *window = tmp->data;
|
||||
|
||||
if (!META_IS_WINDOW (window))
|
||||
continue;
|
||||
|
||||
if (window->screen == screen && !window->override_redirect)
|
||||
if (META_IS_WINDOW (window) &&
|
||||
window->screen == screen &&
|
||||
!window->override_redirect)
|
||||
(* func) (screen, window, data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue