compositor: add a weston_surface_is_mapped() helper
diff --git a/src/compositor.h b/src/compositor.h
index c106f17..a88a6ba 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -453,6 +453,9 @@
 weston_surface_set_position(struct weston_surface *surface,
 			    GLfloat x, GLfloat y);
 
+int
+weston_surface_is_mapped(struct weston_surface *surface);
+
 void
 weston_surface_assign_output(struct weston_surface *surface);