export_dmabuf: Initial support
This commit is contained in:
parent
52507f25bc
commit
944af9ab85
11 changed files with 733 additions and 32 deletions
|
|
@ -473,14 +473,16 @@ fn send_toplevel_to_client<D>(
|
|||
}
|
||||
}
|
||||
|
||||
pub(super) fn window_from_handle(handle: ZcosmicToplevelHandleV1) -> Window {
|
||||
pub fn window_from_handle(handle: ZcosmicToplevelHandleV1) -> Option<Window> {
|
||||
handle
|
||||
.data::<ToplevelHandleState>()
|
||||
.unwrap()
|
||||
.lock()
|
||||
.unwrap()
|
||||
.window
|
||||
.clone()
|
||||
.map(|state|
|
||||
state
|
||||
.lock()
|
||||
.unwrap()
|
||||
.window
|
||||
.clone()
|
||||
)
|
||||
}
|
||||
|
||||
macro_rules! delegate_toplevel_info {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue