main: pass struct conn by-reference to init_layout()
[staging/windowmanager.git] / src / wayland.hpp
index ba1effd..7ff1145 100644 (file)
@@ -66,8 +66,7 @@ struct registry : public wayland_proxy<struct wl_registry> {
 //  \__,_|_|___/ .__/|_|\__,_|\__, |
 //             |_|            |___/
 struct display {
-   std::unique_ptr<struct wl_display, std::function<void(struct wl_display *)>>
-      d;
+   std::unique_ptr<struct wl_display, void(*)(struct wl_display *)> d;
    struct registry r;
 
    display();