app: reset g_app on ~App()
[staging/windowmanager.git] / src / app.hpp
index 4e1c4ff..172e688 100644 (file)
@@ -32,6 +32,10 @@ struct App {
    std::vector<std::unique_ptr<struct wl::output>> outputs;
 
    App(wl::display *d);
+   ~App();
+
+   App(App const &) = delete;
+   App &operator=(App const &) = delete;
 
    int init();
    int dispatch_events();