refactor: remove SurfaceMessageHandler
This commit is contained in:
parent
2b232065ff
commit
9352c0241e
7 changed files with 131 additions and 156 deletions
|
|
@ -7,17 +7,6 @@ pub enum MessageWrapper<M> {
|
|||
Message(M),
|
||||
}
|
||||
|
||||
pub trait SurfaceMessageHandler: Sized {
|
||||
fn to_surface_message(self) -> MessageWrapper<Self>;
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "wayland"))]
|
||||
impl<M> SurfaceMessageHandler for M {
|
||||
fn to_surface_message(self) -> MessageWrapper<Self> {
|
||||
MessageWrapper::Message(self)
|
||||
}
|
||||
}
|
||||
|
||||
/// Ignore this message in your application. It will be intercepted.
|
||||
#[derive(Clone)]
|
||||
pub enum SurfaceMessage {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue