input: avoid crash by using surface directly
A constraint always has a surface, but may not have a view - use the surface pointer directly without trying to get it through the view.
Fixes #823 (closed)
Signed-off-by: Derek Foreman derek.foreman@collabora.com
Edited by Derek Foreman