wayland: add wl::display::get_error()
[staging/windowmanager.git] / src / wayland.cpp
index 8b44852..cf03d02 100644 (file)
@@ -31,6 +31,8 @@ void display::flush() { wl_display_flush(this->d.get()); }
 
 int display::get_fd() const { return wl_display_get_fd(this->d.get()); }
 
+int display::get_error() { return wl_display_get_error(this->d.get()); }
+
 //                 _     _
 //  _ __ ___  __ _(_)___| |_ _ __ _   _
 // | '__/ _ \/ _` | / __| __| '__| | | |
@@ -741,6 +743,7 @@ void controller::debug_dump_current_status() {
       puts("\b\b ");
    }
 }
+
 //
 //  ___  ___ _ __ ___  ___ _ __
 // / __|/ __| '__/ _ \/ _ \ '_ \