On Wayland, implement 'request_user_attention'

This commit implements 'request_user_attention' on Wayland with
new 'xdg_activation_v1' protocol.
This commit is contained in:
Kirill Chibisov 2021-08-17 07:59:57 +03:00 committed by GitHub
parent c9520deef8
commit b5d0d6ff3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 133 additions and 81 deletions

View file

@ -437,12 +437,12 @@ impl Window {
_ => (),
}
}
pub fn request_user_attention(&self, _request_type: Option<UserAttentionType>) {
pub fn request_user_attention(&self, request_type: Option<UserAttentionType>) {
match self {
#[cfg(feature = "x11")]
Window::X(ref w) => w.request_user_attention(_request_type),
Window::X(ref w) => w.request_user_attention(request_type),
#[cfg(feature = "wayland")]
_ => (),
Window::Wayland(ref w) => w.request_user_attention(request_type),
}
}