hyprshell_windows_lib/switch/stop.rs
1use crate::global::WindowsSwitchData;
2use adw::gtk::prelude::*;
3use core_lib::WarnWithDetails;
4use exec_lib::reset_no_follow_mouse;
5use tracing::{debug_span, trace};
6
7pub fn stop_switch(data: &WindowsSwitchData) {
8 let _span = debug_span!("stop_switch").entered();
9 reset_no_follow_mouse().warn_details("Failed to reset follow mouse");
10 trace!("Closing window {:?}", data.window.id());
11 data.window.close();
12}