review comments
This commit is contained in:
parent
ebee5feb9e
commit
4fda0bef4a
|
@ -421,6 +421,10 @@ fn main() {
|
||||||
libinput_event_source.remove();
|
libinput_event_source.remove();
|
||||||
|
|
||||||
// destroy the udev backend freeing the drm devices
|
// destroy the udev backend freeing the drm devices
|
||||||
|
//
|
||||||
|
// udev_event_source.remove() returns a Box<Implementation<..>>, downcast_impl
|
||||||
|
// allows us to cast it back to its original type, storing it back into its original
|
||||||
|
// variable to simplify type inference.
|
||||||
udev_backend = *(downcast_impl(udev_event_source.remove()).unwrap_or_else(|_| unreachable!()));
|
udev_backend = *(downcast_impl(udev_event_source.remove()).unwrap_or_else(|_| unreachable!()));
|
||||||
udev_backend.close();
|
udev_backend.close();
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
//! This module provides automatic handling of shell surfaces objects, by being registered
|
//! This module provides automatic handling of shell surfaces objects, by being registered
|
||||||
//! as a global handler for `wl_shell`. This protocol is deprecated in favor of `xdg_shell`,
|
//! as a global handler for `wl_shell`. This protocol is deprecated in favor of `xdg_shell`,
|
||||||
//! thus this module is provided as a compatibility layer with older clients. As a consequence,
|
//! thus this module is provided as a compatibility layer with older clients. As a consequence,
|
||||||
//! you can as a compositor-writer decide to only support its fonctionnality in a best-effort
|
//! you can as a compositor-writer decide to only support its functionality in a best-effort
|
||||||
//! maneer: as this global is part of the core protocol, you are still required to provide
|
//! maneer: as this global is part of the core protocol, you are still required to provide
|
||||||
//! some support for it.
|
//! some support for it.
|
||||||
//!
|
//!
|
||||||
|
|
Loading…
Reference in New Issue