From 76757fe0858571efad81e3c90c65b173cecc9aaa Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Wed, 23 Nov 2016 12:45:14 +0100 Subject: [PATCH] Add dirty hack to get rid of home window/task for now --- src/anbox/wm/manager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/anbox/wm/manager.cpp b/src/anbox/wm/manager.cpp index 62a826a..83e9702 100644 --- a/src/anbox/wm/manager.cpp +++ b/src/anbox/wm/manager.cpp @@ -50,6 +50,11 @@ void Manager::apply_window_state_update(const WindowState::List &updated, w->second->update_state(window); continue; } + // HACK: We ignore the first task here which will be always the home + // stack of Android. This needs to be solved differently so that the + // Android side doesn't create this stack at all. + if (window.task() == 0) + continue; auto platform_window = platform_->create_window(window); platform_window->ref(); platform_window->attach();