Skip to content

Providing each Wayland interface instance with access to their client#4860

Open
mattkae wants to merge 3 commits intowayland-rs-global-filterfrom
wayland-rs-client-per-object
Open

Providing each Wayland interface instance with access to their client#4860
mattkae wants to merge 3 commits intowayland-rs-global-filterfrom
wayland-rs-client-per-object

Conversation

@mattkae
Copy link
Copy Markdown
Contributor

@mattkae mattkae commented Apr 16, 2026

What's new?

  • Interface implementations will require their client, so all constructors must provide it in a protected constructor

Checklist

  • Tests added and pass
  • Adequate documentation added
  • (optional) Added Screenshots or videos

@mattkae mattkae force-pushed the wayland-rs-global-filter branch from 5862a79 to 9df6ce8 Compare April 21, 2026 12:15
@mattkae mattkae force-pushed the wayland-rs-client-per-object branch from 2ea9b28 to 3c85bea Compare April 21, 2026 12:21
@mattkae mattkae marked this pull request as ready for review April 21, 2026 12:22
@mattkae mattkae requested a review from a team as a code owner April 21, 2026 12:22
@mattkae mattkae requested a review from RAOF April 21, 2026 12:22
Copy link
Copy Markdown
Contributor

@tarek-y-ismail tarek-y-ismail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pokes here and there, but fine otherwise.

Comment on lines +416 to +418
self.protected_constructor_args
.last_mut()
.expect("protected_constructor_args cannot be empty after push")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kinda redundant to check right after pushing. What is this trying to assert?

Comment on lines +162 to +165
format!(
"{} {}",
cpp_arg_type_to_cpp_source(&arg.cpp_type, true),
arg.name
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I've seen this pattern before while reviewing related code. Might be worth refactoring out at some point (not urgent)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants