From d76003256f1322665496e72aaf3c70d33efcf1d5 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Fri, 25 Nov 2016 07:10:57 +0100 Subject: [PATCH] fix: Do not parse module tags twice Ref #192 --- src/modules/ipc.cpp | 2 +- src/modules/script.cpp | 2 +- src/modules/text.cpp | 2 +- src/modules/xwindow.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/ipc.cpp b/src/modules/ipc.cpp index 969be120..f67a75c9 100644 --- a/src/modules/ipc.cpp +++ b/src/modules/ipc.cpp @@ -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(); } diff --git a/src/modules/script.cpp b/src/modules/script.cpp index 8c9ad71e..db113d65 100644 --- a/src/modules/script.cpp +++ b/src/modules/script.cpp @@ -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(); } diff --git a/src/modules/text.cpp b/src/modules/text.cpp index 3489ff3e..42cf849b 100644 --- a/src/modules/text.cpp +++ b/src/modules/text.cpp @@ -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(); } diff --git a/src/modules/xwindow.cpp b/src/modules/xwindow.cpp index f3af2314..107c986f 100644 --- a/src/modules/xwindow.cpp +++ b/src/modules/xwindow.cpp @@ -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(); }