summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/munia_proto.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/munia_proto.cc b/src/munia_proto.cc
index 3022042..3621bbf 100644
--- a/src/munia_proto.cc
+++ b/src/munia_proto.cc
@@ -160,10 +160,11 @@ int callback_lws_task(struct libwebsocket_context * context,
msg.cmd == cmd::create && // look from create commands
prevmsg.cmd == cmd::remove && // if previous msg is a remove command
msg.create.id == prevmsg.remove.id) { // and commands have same id
-
+
printf("\tprevmsg: %s, msg: %s\n", msg_tostring(prevmsg).c_str(),
msg_tostring(msg).c_str());
message_t movemsg = create_msg_move(msg.create.id, msg.create.parentid);
+ movemsg.tid = msg.tid;
msg = movemsg;
}
else if(c > 0) {