discomfitor pushed a commit to branch master.

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

commit 0c7ff0b0e908878a60dfb9eac2dcf6b2940096b8
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Apr 27 14:32:05 2015 -0400

    add comp mouse grab detection function
---
 src/bin/e_comp.c | 6 ++++++
 src/bin/e_comp.h | 1 +
 2 files changed, 7 insertions(+)

diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c
index 3e720d4..8f39498 100644
--- a/src/bin/e_comp.c
+++ b/src/bin/e_comp.c
@@ -1592,6 +1592,12 @@ e_comp_util_kbd_grabbed(void)
    return e_menu_grab_window_get() || e_client_action_get() || 
e_grabinput_key_win_get();
 }
 
+EAPI Eina_Bool
+e_comp_util_mouse_grabbed(void)
+{
+   return e_menu_grab_window_get() || e_client_action_get() || 
e_grabinput_mouse_win_get();
+}
+
 EAPI void
 e_comp_gl_set(Eina_Bool set)
 {
diff --git a/src/bin/e_comp.h b/src/bin/e_comp.h
index 1f753e4..c48cc48 100644
--- a/src/bin/e_comp.h
+++ b/src/bin/e_comp.h
@@ -212,6 +212,7 @@ EAPI E_Config_Dialog *e_int_config_comp_match(Evas_Object 
*parent, const char *p
 
 
 EAPI Eina_Bool e_comp_util_kbd_grabbed(void);
+EAPI Eina_Bool e_comp_util_mouse_grabbed(void);
 
 static inline Eina_Bool
 e_comp_util_client_is_fullscreen(const E_Client *ec)

-- 


Reply via email to