discomfitor pushed a commit to branch master.

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

commit fdeedef7fe5777d3bad33a55d6804a6b96cc3b1a
Author: Mike Blumenkrantz <[email protected]>
Date:   Thu Feb 12 16:18:46 2015 -0500

    add E_Client->mouse.in for determining mouse-in status
---
 src/bin/e_client.c | 2 ++
 src/bin/e_client.h | 1 +
 2 files changed, 3 insertions(+)

diff --git a/src/bin/e_client.c b/src/bin/e_client.c
index bbc304e..4dd3ba3 100644
--- a/src/bin/e_client.c
+++ b/src/bin/e_client.c
@@ -2691,6 +2691,7 @@ e_client_mouse_in(E_Client *ec, int x, int y)
    if (ec->desk && ec->desk->animate_count) return;
    ec->mouse.current.mx = x;
    ec->mouse.current.my = y;
+   ec->mouse.in = 1;
    if (!ec->iconic)
      e_focus_event_mouse_in(ec);
 }
@@ -2706,6 +2707,7 @@ e_client_mouse_out(E_Client *ec, int x, int y)
 
    ec->mouse.current.mx = x;
    ec->mouse.current.my = y;
+   ec->mouse.in = 0;
    if (!ec->iconic)
      e_focus_event_mouse_out(ec);
 }
diff --git a/src/bin/e_client.h b/src/bin/e_client.h
index 52eff9d..d964e91 100644
--- a/src/bin/e_client.h
+++ b/src/bin/e_client.h
@@ -270,6 +270,7 @@ struct E_Client
          int x, y, w, h;
          int mx, my;
       } current, last_down[3], last_up[3];
+      Eina_Bool in : 1;
    } mouse;
 
    struct

-- 


Reply via email to