X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fapp.cpp;h=64a1835fb1fb312164e48e678a37add5860a4953;hb=17dd59f6fbc3deead5ce85006fb79aa9845bbdb4;hp=936a8bc4e4010b364c961dd5127b1015f06b170a;hpb=bc95ea7e991f78c4753a845b0daa6687a5abbb98;p=apps%2Fagl-service-windowmanager.git diff --git a/src/app.cpp b/src/app.cpp index 936a8bc..64a1835 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -36,7 +36,7 @@ #include #include -#include "wm-client.hpp" +#include "wm_client.hpp" extern "C" @@ -872,6 +872,11 @@ void App::api_activate_surface(char const *appid, char const *drawing_name, char auto client = app_list->lookUpClient(id); + unsigned srfc = client->surfaceID(role); + if(srfc != INVALID_SURFACE_ID){ + // remove floating surface + app_list->removeFloatingSurface(client->surfaceID(role)); + } /* * Queueing Phase */