Skip to content

Commit

Permalink
backend: fix server-side WAYLAND_DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
elinorbgr committed Sep 2, 2023
1 parent 48a491e commit 85e8b41
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions wayland-backend/src/rs/server_impl/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,16 @@ impl<D> Client<D> {
};

let obj = self.map.find(msg.sender_id).unwrap();

if self.debug {
super::super::debug::print_dispatched_message(
obj.interface.name,
msg.sender_id,
obj.interface.requests.get(msg.opcode as usize).unwrap().name,
&msg.args
);
}

return Ok((msg, obj));
}
}
Expand Down

0 comments on commit 85e8b41

Please sign in to comment.