-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add a layershellexample #619
base: master
Are you sure you want to change the base?
Conversation
38472df
to
97b431c
Compare
impl Dispatch<wl_compositor::WlCompositor, ()> for State { | ||
fn event( | ||
_: &mut Self, | ||
_: &wl_compositor::WlCompositor, | ||
_: wl_compositor::Event, | ||
_: &(), | ||
_: &Connection, | ||
_: &QueueHandle<Self>, | ||
) { | ||
// wl_compositor has no event | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Want to use delegate_noop!
here instead?
impl Dispatch<wl_compositor::WlCompositor, ()> for State { | |
fn event( | |
_: &mut Self, | |
_: &wl_compositor::WlCompositor, | |
_: wl_compositor::Event, | |
_: &(), | |
_: &Connection, | |
_: &QueueHandle<Self>, | |
) { | |
// wl_compositor has no event | |
} | |
} | |
delegate_noop!(State: wl_compositor::WlCompositor); |
Since this is an example, let's use the approach that's simplest for other to follow :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but I want it be the same as xdg-shell, emm, to show they are similar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be best to update that example to use delegate_noop!
too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, done
I just wanted to say, thank you very much for this example! It has really helped me out and guided me! Why exactly has it not yet been merged?? This is gold! |
97b431c
to
ace9c7a
Compare
ace9c7a
to
1fea0fb
Compare
I found that layershell is very similar with xdg, so I want to add one example of layershell with origin wayland-rs..because the are so similar