X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=staging%2Fwindowmanager.git;a=blobdiff_plain;f=src%2Fapp.cpp;fp=src%2Fapp.cpp;h=ac70489567a542f654edeeff7f33416efc1dcee9;hp=3ee4379c9f7f86ff84b9f6f9936ec0d9575947a9;hb=ac77bd576083ccecfce128b1bca6ab66d16491ee;hpb=2f2408428a9ed9205fdb92cc2cb786949042f256 diff --git a/src/app.cpp b/src/app.cpp index 3ee4379..ac70489 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -39,7 +39,6 @@ namespace wm { namespace { -App *g_app; using nlohmann::json; @@ -84,9 +83,6 @@ App::App(wl::display *d) id_alloc{}, pending_events(false), policy{} { - assert(g_app == nullptr); - g_app = this; - try { { auto l = load_layer_map( @@ -102,8 +98,6 @@ App::App(wl::display *d) } } -App::~App() { g_app = nullptr; } - int App::init() { if (!this->display->ok()) { return -1;