discomfitor pushed a commit to branch master.

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

commit 0d82fcf71c1ccf7322ed76f4e4211c671a068067
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Tue Jan 20 17:17:08 2015 -0500

    remove e_comp_get() use in grabinput
---
 src/bin/e_grabinput.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/bin/e_grabinput.c b/src/bin/e_grabinput.c
index d333cf3..8c3ee56 100644
--- a/src/bin/e_grabinput.c
+++ b/src/bin/e_grabinput.c
@@ -37,7 +37,7 @@ e_grabinput_shutdown(void)
 EAPI int
 e_grabinput_get(Ecore_Window mouse_win, int confine_mouse, Ecore_Window 
key_win)
 {
-   if (e_comp_get(NULL)->comp_type != E_PIXMAP_TYPE_X) return 1;
+   if (e_comp->comp_type != E_PIXMAP_TYPE_X) return 1;
    if (grab_mouse_win)
      {
 #ifndef HAVE_WAYLAND_ONLY
@@ -93,7 +93,7 @@ e_grabinput_get(Ecore_Window mouse_win, int confine_mouse, 
Ecore_Window key_win)
 EAPI void
 e_grabinput_release(Ecore_Window mouse_win, Ecore_Window key_win)
 {
-   if (e_comp_get(NULL)->comp_type != E_PIXMAP_TYPE_X) return;
+   if (e_comp->comp_type != E_PIXMAP_TYPE_X) return;
    if (mouse_win == grab_mouse_win)
      {
 #ifndef HAVE_WAYLAND_ONLY
@@ -120,7 +120,7 @@ e_grabinput_release(Ecore_Window mouse_win, Ecore_Window 
key_win)
 EAPI void
 e_grabinput_focus(Ecore_Window win, E_Focus_Method method)
 {
-   if (e_comp_get(NULL)->comp_type != E_PIXMAP_TYPE_X) return;
+   if (e_comp->comp_type != E_PIXMAP_TYPE_X) return;
    if (grab_key_win != 0)
      {
         /* fprintf(stderr, "while grabbed focus changed to %x\n", win); */

-- 


Reply via email to