add action to get window id

This commit is contained in:
Night_Hunter 2022-12-10 01:54:57 +13:00 committed by Héctor Ramón Jiménez
parent b9b0a9a1f4
commit 9f75f01ddb
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 9 additions and 0 deletions

View file

@ -794,6 +794,11 @@ pub fn run_command<A, E>(
window::Action::ChangeAlwaysOnTop(on_top) => {
window.set_always_on_top(on_top);
}
window::Action::FetchId(tag) => {
proxy
.send_event(tag(window.id().into()))
.expect("Send message to event loop");
}
},
command::Action::System(action) => match action {
system::Action::QueryInformation(_tag) => {