fix: Do not parse module tags twice

Ref #192
This commit is contained in:
Michael Carlberg 2016-11-25 07:10:57 +01:00
parent c24dbbd9ce
commit d76003256f
4 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ namespace modules {
if (!m_actions[mousebtn::SCROLL_DOWN].empty())
m_builder->cmd(mousebtn::SCROLL_DOWN, m_actions[mousebtn::SCROLL_DOWN]);
m_builder->node(module::get_output());
m_builder->append(module::get_output());
return m_builder->flush();
}

View File

@ -118,7 +118,7 @@ namespace modules {
OUTPUT_ACTION(mousebtn::RIGHT);
OUTPUT_ACTION(mousebtn::SCROLL_UP);
OUTPUT_ACTION(mousebtn::SCROLL_DOWN);
m_builder->node(module::get_output());
m_builder->append(module::get_output());
return m_builder->flush();
}

View File

@ -41,7 +41,7 @@ namespace modules {
if (!scroll_down.empty())
m_builder->cmd(mousebtn::SCROLL_DOWN, scroll_down);
m_builder->node(module::get_output());
m_builder->append(module::get_output());
return m_builder->flush();
}

View File

@ -106,7 +106,7 @@ namespace modules {
* Generate the module output
*/
string xwindow_module::get_output() {
m_builder->node(static_module::get_output());
m_builder->append(static_module::get_output());
return m_builder->flush();
}