Fix redefine layer id
[apps/agl-service-windowmanager.git] / src / window_manager.cpp
index 1e3a926..f9070f6 100644 (file)
@@ -167,7 +167,7 @@ result<int> WindowManager::api_request_surface(char const *appid, char const *dr
 
     if(!g_app_list.contains(str_id))
     {
-        unsigned lid = this->generateLayerForClient(role);
+        lid = this->generateLayerForClient(role);
         if (lid == 0)
         {
             return Err<int>("Designated role does not match any role, fallback is disabled");