pub fn install_as_wm(&self, key_handlers: &KeyHandlers) -> Result<()> {
        let values = [(
            xcb::CW_EVENT_MASK,
            xcb::EVENT_MASK_SUBSTRUCTURE_NOTIFY | xcb::EVENT_MASK_SUBSTRUCTURE_REDIRECT,
        )];
        xcb::change_window_attributes_checked(&self.conn, self.root.to_x(), &values)
            .request_check()
            .context("Could not register SUBSTRUCTURE_NOTIFY/REDIRECT")?;

        self.enable_window_key_events(&self.root, key_handlers);

        Ok(())
    }
/// Installs the Connection as a window manager, by registers for
/// SubstructureNotify and SubstructureRedirect events on the root window.
/// If there is already a window manager on the display, then this will
/// fail.
Installs the Connection as a window manager, by registers for
SubstructureNotify and SubstructureRedirect events on the root window.
If there is already a window manager on the display, then this will
fail.
Installs the Connection as a window manager by registers for SubstructureNotify and SubstructureRedirect events on the root window . If there is already a window manager on the display then this will fail .
pub fn install_as_wm(&self, key_handlers: &KeyHandlers) -> Result<()> {
        let values = [(
            xcb::CW_EVENT_MASK,
            xcb::EVENT_MASK_SUBSTRUCTURE_NOTIFY | xcb::EVENT_MASK_SUBSTRUCTURE_REDIRECT,
        )];
        xcb::change_window_attributes_checked(&self.conn, self.root.to_x(), &values)
            .request_check()
            .context("Could not register SUBSTRUCTURE_NOTIFY/REDIRECT")?;
        self.enable_window_key_events(&self.root, key_handlers);
        Ok(())
    }
pub fn install_as_wm ( & self , key_handlers : & KeyHandlers ) -> Result < ( ) > { let values = [ ( xcb :: CW_EVENT_MASK , xcb :: EVENT_MASK_SUBSTRUCTURE_NOTIFY | xcb :: EVENT_MASK_SUBSTRUCTURE_REDIRECT , ) ] ; xcb :: change_window_attributes_checked ( & self . conn , self . root . to_x ( ) , & values ) . request_check ( ) . context ( " " ) ? ; self . enable_window_key_events ( & self . root , key_handlers ) ; Ok ( ( ) ) }
Installs the Connection as a window manager, by registers for
SubstructureNotify and SubstructureRedirect events on the root window.
Installs the Connection as a window manager by registers for SubstructureNotify and SubstructureRedirect events on the root window .
&self
key_handlers
&KeyHandlers