clean compiler warnings when building for wayland-only

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-10-03 13:28:42 -04:00
parent 20c59557db
commit 6dff3365e7
1 changed files with 29 additions and 7 deletions

View File

@ -391,6 +391,9 @@ e_bindings_mouse_grab(E_Binding_Context ctxt, Ecore_X_Window win)
#endif
}
}
#ifdef HAVE_WAYLAND_ONLY
(void)win;
#endif
}
EAPI void
@ -409,6 +412,9 @@ e_bindings_mouse_ungrab(E_Binding_Context ctxt, Ecore_X_Window win)
#endif
}
}
#ifdef HAVE_WAYLAND_ONLY
(void)win;
#endif
}
EAPI E_Action *
@ -601,6 +607,9 @@ e_bindings_key_grab(E_Binding_Context ctxt, Ecore_X_Window win)
}
}
}
#ifdef HAVE_WAYLAND_ONLY
(void)win;
#endif
}
EAPI void
@ -622,6 +631,9 @@ e_bindings_key_ungrab(E_Binding_Context ctxt, Ecore_X_Window win)
}
}
}
#ifdef HAVE_WAYLAND_ONLY
(void)win;
#endif
}
EAPI E_Action *
@ -1189,14 +1201,19 @@ e_bindings_wheel_grab(E_Binding_Context ctxt, Ecore_X_Window win)
else if (binding->z > 0)
button = 7;
}
#ifndef HAVE_WAYLAND_ONLY
if (button != 0)
ecore_x_window_button_grab(win, button,
ECORE_X_EVENT_MASK_MOUSE_DOWN,
e_bindings_modifiers_to_ecore_convert(binding->mod), binding->any_mod);
{
#ifndef HAVE_WAYLAND_ONLY
ecore_x_window_button_grab(win, button,
ECORE_X_EVENT_MASK_MOUSE_DOWN,
e_bindings_modifiers_to_ecore_convert(binding->mod), binding->any_mod);
#endif
}
}
}
#ifdef HAVE_WAYLAND_ONLY
(void)win;
#endif
}
EAPI void
@ -1223,13 +1240,18 @@ e_bindings_wheel_ungrab(E_Binding_Context ctxt, Ecore_X_Window win)
else if (binding->z > 0)
button = 7;
}
#ifndef HAVE_WAYLAND_ONLY
if (button != 0)
ecore_x_window_button_ungrab(win, button,
e_bindings_modifiers_to_ecore_convert(binding->mod), binding->any_mod);
{
#ifndef HAVE_WAYLAND_ONLY
ecore_x_window_button_ungrab(win, button,
e_bindings_modifiers_to_ecore_convert(binding->mod), binding->any_mod);
#endif
}
}
}
#ifdef HAVE_WAYLAND_ONLY
(void)win;
#endif
}
EAPI E_Action *