diff --git a/api/lua/msg.lua b/api/lua/msg.lua index 05470d4..e7a462c 100644 --- a/api/lua/msg.lua +++ b/api/lua/msg.lua @@ -7,7 +7,6 @@ ---@field SetMousebind { button: integer }? --Windows ---@field CloseWindow { window_id: WindowId }? ----@field ToggleFloating { window_id: WindowId }? ---@field SetWindowSize { window_id: WindowId, width: integer?, height: integer? }? ---@field MoveWindowToTag { window_id: WindowId, tag_id: TagId }? ---@field ToggleTagOnWindow { window_id: WindowId, tag_id: TagId }? diff --git a/src/api/msg.rs b/src/api/msg.rs index 7f9af63..21db37f 100644 --- a/src/api/msg.rs +++ b/src/api/msg.rs @@ -29,9 +29,6 @@ pub enum Msg { CloseWindow { window_id: WindowId, }, - ToggleFloating { - window_id: WindowId, - }, SetWindowSize { window_id: WindowId, #[serde(default)] diff --git a/src/handlers/xdg_shell.rs b/src/handlers/xdg_shell.rs index e74f225..78a3313 100644 --- a/src/handlers/xdg_shell.rs +++ b/src/handlers/xdg_shell.rs @@ -322,13 +322,6 @@ impl XdgShellHandler for State { tracing::error!("wl_surface had no window"); return; }; - - window.with_state(|state| { - let tags = state.tags.iter(); - for tag in tags { - // tag.set_fullscreen_window(window.clone()); - } - }); } surface.send_configure(); @@ -349,14 +342,6 @@ impl XdgShellHandler for State { state.fullscreen_output.take(); }); - if let Some(window) = self.window_for_surface(surface.wl_surface()) { - window.with_state(|state| { - for tag in state.tags.iter() { - // tag.set_fullscreen_window(None); - } - }); - } - surface.send_pending_configure(); } diff --git a/src/state.rs b/src/state.rs index 349c191..de64fbc 100644 --- a/src/state.rs +++ b/src/state.rs @@ -145,11 +145,6 @@ impl State { } } } - Msg::ToggleFloating { window_id } => { - if let Some(window) = window_id.window(self) { - crate::window::toggle_floating(self, &window); - } - } Msg::Spawn { command,