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 44cb103
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wayland-backend/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

- Add `flush` method to server `Handle`.

#### Bugfixes

- Setting `WAYLAND_DEBUG` server-side now properly prints incoming requests

## 0.2.0 -- 2023-07-13

#### Breaking changes
Expand Down
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 44cb103

Please sign in to comment.