App: emit_flushdraw() should actually emit a flushdraw event.
[staging/windowmanager.git] / src / app.cpp
index d371af1..f8d216b 100644 (file)
@@ -389,14 +389,11 @@ char const *App::activate_surface(char const *drawing_name) {
    auto layer_id = this->layers.get_layer_id(*surface_id);
 
    if (! layer_id) {
-      logdebug("Surface %d has no associated layer!", *surface_id);
       return "Surface is not on any layer!";
    }
 
    struct LayoutState &state = **this->layers.get_layout_state(*surface_id);
 
-   logdebug("state @ %p = { %d, %d, %d }", &state, state.main, state.sub, state.s);
-
    // disable layers that are above our current layer
    for (auto const &l : this->layers.mapping) {
       if (l.layer_id <= *layer_id) {
@@ -506,8 +503,6 @@ char const *App::deactivate_surface(char const *drawing_name) {
       return nullptr;
    }
 
-   logdebug("state @ %p = { %d, %d, %d }", &state, state.main, state.sub, state.s);
-
    if (state.main == *surface_id) {
       if (state.sub != -1) {
          this->emit_syncdraw(this->lookup_name(state.sub)->c_str());
@@ -589,7 +584,7 @@ void App::emit_syncdraw(char const *label) {
 }
 
 void App::emit_flushdraw(char const *label) {
-   this->api.send_event("syncdraw", label);
+   this->api.send_event("flushdraw", label);
 }
 
 void App::emit_visible(char const *label, bool is_visible) {