From f7f02a664fc0438f00e6bd09797a3bf4184c123f Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Wed, 13 Sep 2017 13:58:42 +0200 Subject: [PATCH] app/afbclient: use the correct names for active/inactive events Signed-off-by: Marcus Fritzsch --- client-lib/AFBClient.cpp | 4 ++-- src/app.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client-lib/AFBClient.cpp b/client-lib/AFBClient.cpp index b7a7958..dc1c523 100644 --- a/client-lib/AFBClient.cpp +++ b/client-lib/AFBClient.cpp @@ -336,8 +336,8 @@ std::pair make_event_type(char const *et) { true, CONCAT(AFBClient::Event_, A)); \ } while (false) - ET("activated", Active); - ET("deactivated", Inactive); + ET("active", Active); + ET("inactive", Inactive); ET("visible", Visible); ET("invisible", Invisible); ET("syncdraw", SyncDraw); diff --git a/src/app.cpp b/src/app.cpp index 240c7e4..3ee4379 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -623,11 +623,11 @@ void App::surface_removed(uint32_t surface_id) { } void App::emit_activated(char const *label) { - this->api.send_event("activated", label); + this->api.send_event("active", label); } void App::emit_deactivated(char const *label) { - this->api.send_event("deactivated", label); + this->api.send_event("inactive", label); } void App::emit_syncdraw(char const *label) { -- 2.16.6