mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2024-12-26 21:58:10 +01:00
Clean up stuff
This commit is contained in:
parent
c783efa819
commit
e2dea4dd15
4 changed files with 0 additions and 24 deletions
|
@ -7,7 +7,6 @@
|
||||||
---@field SetMousebind { button: integer }?
|
---@field SetMousebind { button: integer }?
|
||||||
--Windows
|
--Windows
|
||||||
---@field CloseWindow { window_id: WindowId }?
|
---@field CloseWindow { window_id: WindowId }?
|
||||||
---@field ToggleFloating { window_id: WindowId }?
|
|
||||||
---@field SetWindowSize { window_id: WindowId, width: integer?, height: integer? }?
|
---@field SetWindowSize { window_id: WindowId, width: integer?, height: integer? }?
|
||||||
---@field MoveWindowToTag { window_id: WindowId, tag_id: TagId }?
|
---@field MoveWindowToTag { window_id: WindowId, tag_id: TagId }?
|
||||||
---@field ToggleTagOnWindow { window_id: WindowId, tag_id: TagId }?
|
---@field ToggleTagOnWindow { window_id: WindowId, tag_id: TagId }?
|
||||||
|
|
|
@ -29,9 +29,6 @@ pub enum Msg {
|
||||||
CloseWindow {
|
CloseWindow {
|
||||||
window_id: WindowId,
|
window_id: WindowId,
|
||||||
},
|
},
|
||||||
ToggleFloating {
|
|
||||||
window_id: WindowId,
|
|
||||||
},
|
|
||||||
SetWindowSize {
|
SetWindowSize {
|
||||||
window_id: WindowId,
|
window_id: WindowId,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
|
|
|
@ -322,13 +322,6 @@ impl<B: Backend> XdgShellHandler for State<B> {
|
||||||
tracing::error!("wl_surface had no window");
|
tracing::error!("wl_surface had no window");
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
window.with_state(|state| {
|
|
||||||
let tags = state.tags.iter();
|
|
||||||
for tag in tags {
|
|
||||||
// tag.set_fullscreen_window(window.clone());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
surface.send_configure();
|
surface.send_configure();
|
||||||
|
@ -349,14 +342,6 @@ impl<B: Backend> XdgShellHandler for State<B> {
|
||||||
state.fullscreen_output.take();
|
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();
|
surface.send_pending_configure();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
Msg::Spawn {
|
||||||
command,
|
command,
|
||||||
|
|
Loading…
Reference in a new issue