remove e_comp_get() use in grabinput

This commit is contained in:
Mike Blumenkrantz 2015-01-20 17:17:08 -05:00
parent f8d846e0c9
commit 0d82fcf71c
1 changed files with 3 additions and 3 deletions

View File

@ -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); */