mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
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
@ -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…
Reference in New Issue
Block a user