Fix wayland client interaction

Uuhh... I'm not sure about the binding here. Can you please add parentheses around the condition?