Implemented focus_window (#1944)
This commit is contained in:
parent
91591c4e94
commit
b371b406d5
10 changed files with 107 additions and 0 deletions
|
|
@ -430,6 +430,14 @@ impl Window {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn focus_window(&self) {
|
||||
match self {
|
||||
#[cfg(feature = "x11")]
|
||||
&Window::X(ref w) => w.focus_window(),
|
||||
#[cfg(feature = "wayland")]
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
pub fn request_user_attention(&self, _request_type: Option<UserAttentionType>) {
|
||||
match self {
|
||||
#[cfg(feature = "x11")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue