discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=18120e1b5a496fd29fe0f5568f07931e878c5ff0

commit 18120e1b5a496fd29fe0f5568f07931e878c5ff0
Author: Mike Blumenkrantz <[email protected]>
Date:   Thu Mar 27 10:45:49 2014 -0400

    remove invalid shelf autohide window check which would always be wrong
---
 src/bin/e_shelf.c | 36 ++++++++++++++++--------------------
 1 file changed, 16 insertions(+), 20 deletions(-)

diff --git a/src/bin/e_shelf.c b/src/bin/e_shelf.c
index 2def936..9d207e9 100644
--- a/src/bin/e_shelf.c
+++ b/src/bin/e_shelf.c
@@ -1785,27 +1785,23 @@ _e_shelf_cb_mouse_in(void *data, int type, void *event)
          * mouse in/out events. in the future, when we remove systray, we 
should go
          * back to mouse in/out events
          */
-        inside = (ev->event_window == e_comp_get(es)->win);
-        if (!inside)
+        inside = E_INSIDE(e_comp_canvas_x_root_adjust(e_comp_get(es), 
ev->root.x),
+                          e_comp_canvas_x_root_adjust(e_comp_get(es), 
ev->root.y),
+                          es->zone->x, es->zone->y, es->zone->w + 4, 
es->zone->h + 4);
+        x = e_comp_canvas_x_root_adjust(e_comp_get(es), ev->root.x) - 
es->zone->x;
+        y = e_comp_canvas_x_root_adjust(e_comp_get(es), ev->root.y) - 
es->zone->y;
+        if (inside)
+          inside = (
+              ((E_INSIDE(x, y, es->x, es->y, es->w, es->h)) ||
+               (E_INSIDE(x, y, es->x - 2, es->y - 2, es->w + 4, es->h + 4)) ||
+               (E_INSIDE(x, y, es->x + 2, es->y + 2, es->w + 4, es->h + 4)))
+              );
+        if (inside)
           {
-             inside = E_INSIDE(e_comp_canvas_x_root_adjust(e_comp_get(es), 
ev->root.x),
-                               e_comp_canvas_x_root_adjust(e_comp_get(es), 
ev->root.y),
-                               es->zone->x, es->zone->y, es->zone->w + 4, 
es->zone->h + 4);
-             x = e_comp_canvas_x_root_adjust(e_comp_get(es), ev->root.x) - 
es->zone->x;
-             y = e_comp_canvas_x_root_adjust(e_comp_get(es), ev->root.y) - 
es->zone->y;
-             if (inside)
-               inside = (
-                   ((E_INSIDE(x, y, es->x, es->y, es->w, es->h)) ||
-                    (E_INSIDE(x, y, es->x - 2, es->y - 2, es->w + 4, es->h + 
4)) ||
-                    (E_INSIDE(x, y, es->x + 2, es->y + 2, es->w + 4, es->h + 
4)))
-                   );
-             if (inside)
-               {
-                  if (es->autohide_timer)
-                    ecore_timer_reset(es->autohide_timer);
-                  else
-                    es->autohide_timer = ecore_timer_add(0.5, 
(Ecore_Task_Cb)_e_shelf_cb_mouse_move_autohide_fuck_systray, es);
-               }
+             if (es->autohide_timer)
+               ecore_timer_reset(es->autohide_timer);
+             else
+               es->autohide_timer = ecore_timer_add(0.5, 
(Ecore_Task_Cb)_e_shelf_cb_mouse_move_autohide_fuck_systray, es);
           }
         if (inside)
           {

-- 


Reply via email to