diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2012-05-17 13:24:18 +0200 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2012-05-17 13:24:18 +0200 |
commit | c3736ad4d70e71dcca92bb5242c56c68edbddd4d (patch) | |
tree | ac7037a960ede8d2eb9ae9e5ef996fea31ffc3a2 /src | |
parent | 88fc1bfddff7a078ffad767fef44858165c0a69e (diff) |
Fixed setting of observer (msg.tid) when creating move command.
Diffstat (limited to 'src')
-rw-r--r-- | src/munia_proto.cc | 3 |
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) { |