From c3736ad4d70e71dcca92bb5242c56c68edbddd4d Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Thu, 17 May 2012 13:24:18 +0200 Subject: Fixed setting of observer (msg.tid) when creating move command. --- src/munia_proto.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3