feat: Add basic support for foreign top level management.

- Allow users to minimize other applications by sending a
`ForeignToplevelEvent`.
This commit is contained in:
Naman Agrawal
2025-09-01 10:57:24 +05:30
parent 541e0e646f
commit acf9fd122f
5 changed files with 222 additions and 1 deletions
+2 -1
View File
@@ -1,5 +1,4 @@
use std::{
num::NonZero,
sync::mpsc::SendError,
time::{Duration, Instant},
};
@@ -18,6 +17,7 @@ use smithay_client_toolkit::{
seat::SeatState,
};
pub mod foreign_toplevel_manager;
mod input_handler;
pub mod input_region;
pub mod layer_shell;
@@ -85,6 +85,7 @@ impl Plugin for WaylandPlugin {
layer_shell::LayerShellPlugin,
session_lock::SessionLockPlugin,
input_region::InputRegionPlugin,
foreign_toplevel_manager::ForeignToplevelManagerPlugin,
));
app.set_runner(|app| runner(app, event_loop));
}