feat(wayland): shortcut inhibit
This commit is contained in:
parent
8e7b7e586f
commit
54a69a0523
11 changed files with 360 additions and 8 deletions
|
|
@ -0,0 +1,13 @@
|
|||
use iced_runtime::{
|
||||
self,
|
||||
platform_specific::{self, wayland},
|
||||
task, Action, Task,
|
||||
};
|
||||
|
||||
pub fn inhibit_shortcuts(inhibit: bool) -> Task<()> {
|
||||
task::oneshot(|_| {
|
||||
Action::PlatformSpecific(platform_specific::Action::Wayland(
|
||||
wayland::Action::InhibitShortcuts(inhibit),
|
||||
))
|
||||
})
|
||||
}
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
//! Interact with the wayland objects of your application.
|
||||
|
||||
pub mod activation;
|
||||
pub mod keyboard_shortcuts_inhibit;
|
||||
pub mod layer_surface;
|
||||
pub mod overlap_notify;
|
||||
pub mod popup;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue