summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-05-17 13:26:55 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2012-05-17 13:26:55 +0200
commit497edda57cb558e69cd0c03a8c38e6af0900eb3d (patch)
treebb9b52fc3eefbdadab2caee850f6a91385c11eb7 /src
parentdc52e1c5bac15f8c946e6ffac75d12a9e2e2780d (diff)
parentc3736ad4d70e71dcca92bb5242c56c68edbddd4d (diff)
Merge branch 'master' of https://git.oftal.dk/munia
Diffstat (limited to 'src')
-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) {