Clean up stuff

This commit is contained in:
Ottatop 2023-08-12 17:48:33 -05:00
parent c783efa819
commit e2dea4dd15
4 changed files with 0 additions and 24 deletions

View file

@ -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 }?

View file

@ -29,9 +29,6 @@ pub enum Msg {
CloseWindow {
window_id: WindowId,
},
ToggleFloating {
window_id: WindowId,
},
SetWindowSize {
window_id: WindowId,
#[serde(default)]

View file

@ -322,13 +322,6 @@ impl<B: Backend> XdgShellHandler for State<B> {
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<B: Backend> XdgShellHandler for State<B> {
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();
}

View file

@ -145,11 +145,6 @@ impl<B: Backend> State<B> {
}
}
}
Msg::ToggleFloating { window_id } => {
if let Some(window) = window_id.window(self) {
crate::window::toggle_floating(self, &window);
}
}
Msg::Spawn {
command,