add E_Client->mouse.in for determining mouse-in status
authorMike Blumenkrantz <zmike@osg.samsung.com>
Thu, 12 Feb 2015 21:18:46 +0000 (16:18 -0500)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Thu, 12 Feb 2015 21:18:46 +0000 (16:18 -0500)
src/bin/e_client.c
src/bin/e_client.h

index bbc304eeef670cdec1fae1d59c4bfee3173fe7e6..4dd3ba33f9497497a26ea987b909d5338e2d2751 100644 (file)
@@ -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);
 }
index 52eff9dd6def67e68f338c330f94b500834a375d..d964e917dd38c7243a0d2ed025c3b5eecca94217 100644 (file)
@@ -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