From fdeedef7fe5777d3bad33a55d6804a6b96cc3b1a Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 12 Feb 2015 16:18:46 -0500 Subject: [PATCH] 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 bbc304eee..4dd3ba33f 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 52eff9dd6..d964e917d 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