[mutter] screen: Fix a potentially endless loop



commit 380154af0a3bf3501beb5126f08b30682608a071
Author: Rui Matos <tiagomatos gmail com>
Date:   Sat Feb 9 14:36:59 2013 +0100

    screen: Fix a potentially endless loop
    
    We always need to move the list pointer forward.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=693475

 src/core/screen.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/core/screen.c b/src/core/screen.c
index 89e99bd..75902cb 100644
--- a/src/core/screen.c
+++ b/src/core/screen.c
@@ -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);
         }
       


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]