Enlightenment CVS committal
Author : handyande
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_border.c
Log Message:
Finally, border_add getting fired at the right time
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -3 -r1.71 -r1.72
--- e_border.c 14 Jan 2005 14:01:06 -0000 1.71
+++ e_border.c 15 Jan 2005 14:04:13 -0000 1.72
@@ -153,7 +153,6 @@
{
E_Border *bd;
Ecore_X_Window_Attributes *att;
- E_Event_Border_Add *ev;
bd = E_OBJECT_ALLOC(E_Border, _e_border_free);
if (!bd) return NULL;
@@ -280,12 +279,6 @@
con->clients = evas_list_append(con->clients, bd);
borders = evas_list_append(borders, bd);
- ev = calloc(1, sizeof(E_Event_Border_Add));
- ev->border = bd;
- /* SUSPICION: does the unref for this actually sometimes not get */
- /* called? coudl this be the dangling borders issue? */
- e_object_ref(E_OBJECT(bd));
- ecore_event_add(E_EVENT_BORDER_ADD, ev, _e_border_event_border_add_free,
NULL);
return bd;
}
@@ -2162,6 +2155,8 @@
if (bd->new_client)
{
+ E_Event_Border_Add *ev;
+
bd->new_client = 0;
printf("##- NEW CLIENT SETUP 0x%x\n", bd->client.win);
if (bd->re_manage)
@@ -2271,6 +2266,13 @@
bd->y + bd->client_inset.t,
bd->client.w,
bd->client.h);
+
+ ev = calloc(1, sizeof(E_Event_Border_Add));
+ ev->border = bd;
+ /* SUSPICION: does the unref for this actually sometimes not get */
+ /* called? coudl this be the dangling borders issue? */
+ e_object_ref(E_OBJECT(bd));
+ ecore_event_add(E_EVENT_BORDER_ADD, ev,
_e_border_event_border_add_free, NULL);
}
/* effect changes to the window border itself */
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs