diff options
Diffstat (limited to 'src/window_manager.cpp')
-rw-r--r-- | src/window_manager.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/window_manager.cpp b/src/window_manager.cpp index dec7752..41fc5c8 100644 --- a/src/window_manager.cpp +++ b/src/window_manager.cpp @@ -867,8 +867,12 @@ void WindowManager::startTransitionWrapper(vector<WMAction> &actions) if ("" != act.role) { bool found; - auto const &surface_id = this->id_alloc.lookup(act.role); - string appid = g_app_list.getAppID(*surface_id, &found); + auto const &surface_id = this->id_alloc.lookup(act.role.c_str()); + if(surface_id == nullopt) + { + goto proc_remove_request; + } + std::string appid = g_app_list.getAppID(*surface_id, &found); if (!found) { if (TaskVisible::INVISIBLE == act.visible) |