app/afbclient: use the correct names for active/inactive events
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>
Wed, 13 Sep 2017 11:58:42 +0000 (13:58 +0200)
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>
Thu, 14 Sep 2017 12:04:51 +0000 (14:04 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
client-lib/AFBClient.cpp
src/app.cpp

index b7a7958..dc1c523 100644 (file)
@@ -336,8 +336,8 @@ std::pair<bool, AFBClient::EventType> 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);
index 240c7e4..3ee4379 100644 (file)
@@ -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) {