use the correct indices
authortsauerbeck <tsauerbeck>
Sat, 27 Nov 2004 15:12:53 +0000 (15:12 +0000)
committertsauerbeck <tsauerbeck@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 27 Nov 2004 15:12:53 +0000 (15:12 +0000)
SVN revision: 12281

legacy/ecore/src/lib/ecore_x/ecore_x_window_prop.c

index 711c08a..d994573 100644 (file)
@@ -616,7 +616,7 @@ ecore_x_window_prop_protocol_list_get(Ecore_X_Window win, int *num_ret)
        
        for (j = 0; j < ECORE_X_WM_PROTOCOL_NUM; j++)
          {
-            if (_ecore_x_atoms_wm_protocols[i] == protos[j])
+            if (_ecore_x_atoms_wm_protocols[j] == protos[i])
               prot_ret[i] = j;
          }
      }