all: remove control center in its entirety
This commit is contained in:
parent
1dfd6169f8
commit
769d12a525
97 changed files with 59 additions and 10580 deletions
|
|
@ -21,7 +21,7 @@ use {
|
|||
wire::JayHeadManagerSessionV1Id,
|
||||
},
|
||||
std::{
|
||||
cell::{Cell, Ref, RefCell},
|
||||
cell::{Cell, RefCell},
|
||||
collections::hash_map::Entry,
|
||||
rc::Rc,
|
||||
},
|
||||
|
|
@ -103,16 +103,6 @@ pub struct HeadState {
|
|||
pub persistent_state: Option<RcEq<PersistentOutputState>>,
|
||||
}
|
||||
|
||||
pub struct ReadOnlyHeadState {
|
||||
state: Rc<RefCell<HeadState>>,
|
||||
}
|
||||
|
||||
impl ReadOnlyHeadState {
|
||||
pub fn borrow(&self) -> Ref<'_, HeadState> {
|
||||
self.state.borrow()
|
||||
}
|
||||
}
|
||||
|
||||
impl HeadState {
|
||||
pub fn update_in_compositor_space(&mut self, state: &State, wl_output: Option<GlobalName>) {
|
||||
self.in_compositor_space = false;
|
||||
|
|
@ -269,12 +259,6 @@ impl HeadManagers {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn state(&self) -> ReadOnlyHeadState {
|
||||
ReadOnlyHeadState {
|
||||
state: self.state.clone(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn handle_removed(&self) {
|
||||
for head in self.managers.lock().drain_values() {
|
||||
skip_in_transaction!(head);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue