-
Notifications
You must be signed in to change notification settings - Fork 122
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
fd963c5
to
38472df
Compare
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
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