pub fn unset_grab(&mut self, serial: Serial, restore_focus: bool) {
        self.inner.grab = GrabStatus::None;
        // restore the focus
        if restore_focus {
            let focus = self.inner.pending_focus.clone();
            self.set_focus(focus.as_ref(), serial);
        }
    }
/// Remove any current grab on this keyboard, resetting it to the default behavior
///
/// This will also restore the focus of the underlying keyboard if restore_focus
/// is [`true`]
Remove any current grab on this keyboard, resetting it to the default behavior
This will also restore the focus of the underlying keyboard if restore_focus
is [`true`]
Remove any current grab on this keyboard resetting it to the default behavior This will also restore the focus of the underlying keyboard if restore_focus is [ ` true ` ]
pub fn unset_grab(&mut self, serial: Serial, restore_focus: bool) {
        self.inner.grab = GrabStatus::None;
        // restore the focus
        if restore_focus {
            let focus = self.inner.pending_focus.clone();
            self.set_focus(focus.as_ref(), serial);
        }
    }
pub fn unset_grab ( & mut self , serial : Serial , restore_focus : bool ) { self . inner . grab = GrabStatus :: None ; // restore the focus if restore_focus { let focus = self . inner . pending_focus . clone ( ) ; self . set_focus ( focus . as_ref ( ) , serial ) ; } }
Remove any current grab on this keyboard, resetting it to the default behavior
This will also restore the focus of the underlying keyboard if restore_focus
is [`true`]
Remove any current grab on this keyboard resetting it to the default behavior This will also restore the focus of the underlying keyboard if restore_focus is [ ` true ` ]
&mut self
serial
Serial
restore_focus
bool
&mut self
serial
Serial
restore_focus
bool