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

[E-devel] [PATCH] _e_container_resize_handle Fix



Patch to fix issue picked up by Jan Rychter, where xrandr didn't
correctly handle maximised windows. Ended up to actually be a bit more,
window list was reordered as it was being used as an index. 

metrics
Index: src/bin/e_container.c
===================================================================
RCS file: /var/cvs/e/e17/apps/e/src/bin/e_container.c,v
retrieving revision 1.111
diff -u -r1.111 e_container.c
--- src/bin/e_container.c	21 Sep 2006 19:37:04 -0000	1.111
+++ src/bin/e_container.c	31 Oct 2006 09:45:41 -0000
@@ -1186,7 +1186,14 @@
    
    for (i = 0; i < 7; i++)
      {
+	Evas_List *tmp = NULL;
+
+	/* Make temporary list as e_border_res_change_geometry_restore
+	 * rearranges the order. */
 	for (l = con->layers[i].clients; l; l = l->next)
+	     tmp = evas_list_append(tmp, l->data);
+
+	for (l = tmp; l; l = l->next)
 	  {
 	     E_Border *bd;
 
@@ -1194,6 +1201,8 @@
 	     e_border_res_change_geometry_save(bd);
 	     e_border_res_change_geometry_restore(bd);
 	  }
+
+	tmp = evas_list_free(tmp);
      }
 }