ecore-wayland: No need to check button state twice

Since we already check the button pressed state in the 'if' above
this, there is no need to check it again.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-03-27 14:25:03 +00:00
parent 22162a66f3
commit c5c378f5f9
1 changed files with 1 additions and 1 deletions

View File

@ -518,7 +518,7 @@ _ecore_wl_input_cb_pointer_button(void *data, struct wl_pointer *pointer EINA_UN
if (state)
{
if ((input->pointer_focus) && (!input->grab) && (state))
if ((input->pointer_focus) && (!input->grab))
{
ecore_wl_input_grab(input, input->pointer_focus, button);
input->grab_timestamp = timestamp;