aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 6fff161..022834b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -418,9 +418,10 @@ void windowmanager_enddraw(afb_req req) noexcept
afb_req_success(req, NULL, "success");
char* appid = afb_req_get_application_id(req);
+
if(appid)
{
- if (g_afb_instance->wmgr.wmcon.getAppIdToEcuName(appid) == "" ||
+ if (!g_afb_instance->wmgr.wmcon.isRemoteEcu(appid) ||
!g_afb_instance->wmgr.wmcon.isSyncDrawingForRemote(appid))
{
g_afb_instance->wmgr.api_enddraw(appid, a_drawing_name);
@@ -719,10 +720,7 @@ void windowmanager_wm_subscribe(afb_req req) noexcept
}
afb_req_success(req, NULL, "success");
- if (event_id == g_afb_instance->wmgr.Event_Handshake)
- {
- g_afb_instance->wmgr.api_handshake();
- }
+ g_afb_instance->wmgr.setSubscribed(true);
}
catch (std::exception &e)
{