diff options
Diffstat (limited to 'src/wayland.cpp')
-rw-r--r-- | src/wayland.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/wayland.cpp b/src/wayland.cpp index 2bae9e8..950335a 100644 --- a/src/wayland.cpp +++ b/src/wayland.cpp @@ -15,14 +15,18 @@ namespace wl { // \__,_|_|___/ .__/|_|\__,_|\__, | // |_| |___/ display::display() - : d(std::unique_ptr<struct wl_display, - std::function<void(struct wl_display *)>>( + : d(std::unique_ptr<struct wl_display, void (*)(struct wl_display *)>( wl_display_connect(NULL), +#ifdef DEBUG_OUTPUT [](struct wl_display *d) { logdebug("wl::display ~display @ %p", d); wl_display_disconnect(d); })), - r(d.get()) {} +#else + &wl_display_disconnect)), +#endif + r(d.get()) { +} display::~display() {} |