On 11/05/11 14:29, Enlightenment SVN wrote:
> Log:
> e: send hide event for borders even if not visible
>
> Author:       billiob
> Date:         2011-11-05 11:29:30 -0700 (Sat, 05 Nov 2011)
> New Revision: 64787
> Trac:         http://trac.enlightenment.org/e/changeset/64787
>
> Modified:
>    trunk/e/src/bin/e_border.c
>
> Modified: trunk/e/src/bin/e_border.c
> ===================================================================
> --- trunk/e/src/bin/e_border.c        2011-11-05 17:50:23 UTC (rev 64786)
> +++ trunk/e/src/bin/e_border.c        2011-11-05 18:29:30 UTC (rev 64787)
> @@ -911,7 +911,7 @@
>
>      E_OBJECT_CHECK(bd);
>      E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
> -   if (!bd->visible) return;
> +   if (!bd->visible) goto send_event;
>      ecore_x_window_shadow_tree_flush();
>      if (bd->moving)
>        _e_border_move_end(bd);
> @@ -981,6 +981,9 @@
>      if (!manage)
>        ecore_x_window_prop_card32_set(bd->client.win, 
> E_ATOM_MANAGED,&visible, 1);
>
> +   bd->post_show = 0;
> +
> +send_event:
>      if (!stopping)
>        {
>           E_Event_Border_Hide *ev;
> @@ -991,7 +994,6 @@
>   //  e_object_breadcrumb_add(E_OBJECT(bd), "border_hide_event");
>           ecore_event_add(E_EVENT_BORDER_HIDE, ev, 
> _e_border_event_border_hide_free, NULL);
>        }
> -   bd->post_show = 0;
>   }
>
>   static void
>
>

What is the reasoning for this ?? Makes little sense to me to send a 
hide event for a border that is not visible (ie: not visible on screen 
or already hidden). If the border is not visible on the screen (or 
already hidden), then why send a hide event ??

dh

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to