Function smithay::wayland::compositor::compositor_init[][src]

pub fn compositor_init<Impl, L>(
    display: &mut Display,
    implem: Impl,
    logger: L
) -> (Global<WlCompositor>, Global<WlSubcompositor>) where
    L: Into<Option<Logger>>,
    Impl: for<'a> FnMut(WlSurface, DispatchData<'a>) + 'static, 
Expand description

Create new wl_compositor and wl_subcompositor globals.

It returns the two global handles, in case you wish to remove these globals from the event loop in the future.