chore: Update deps
This commit is contained in:
parent
4f3a682564
commit
4e12957169
39 changed files with 1146 additions and 1001 deletions
|
|
@ -539,7 +539,7 @@ impl CosmicMapped {
|
|||
self.element = CosmicMappedInternal::Window(window);
|
||||
}
|
||||
|
||||
pub(super) fn loop_handle(&self) -> LoopHandle<'static, crate::state::Data> {
|
||||
pub(super) fn loop_handle(&self) -> LoopHandle<'static, crate::state::State> {
|
||||
match &self.element {
|
||||
CosmicMappedInternal::Stack(stack) => stack.loop_handle(),
|
||||
CosmicMappedInternal::Window(window) => window.loop_handle(),
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ pub type ResizeIndicator = IcedElement<ResizeIndicatorInternal>;
|
|||
pub fn resize_indicator(
|
||||
direction: ResizeDirection,
|
||||
config: &Config,
|
||||
evlh: LoopHandle<'static, crate::state::Data>,
|
||||
evlh: LoopHandle<'static, crate::state::State>,
|
||||
) -> ResizeIndicator {
|
||||
ResizeIndicator::new(
|
||||
ResizeIndicatorInternal {
|
||||
|
|
|
|||
|
|
@ -122,14 +122,14 @@ pub enum Focus {
|
|||
|
||||
pub enum MoveResult {
|
||||
Handled,
|
||||
MoveOut(CosmicSurface, LoopHandle<'static, crate::state::Data>),
|
||||
MoveOut(CosmicSurface, LoopHandle<'static, crate::state::State>),
|
||||
Default,
|
||||
}
|
||||
|
||||
impl CosmicStack {
|
||||
pub fn new<I: Into<CosmicSurface>>(
|
||||
windows: impl Iterator<Item = I>,
|
||||
handle: LoopHandle<'static, crate::state::Data>,
|
||||
handle: LoopHandle<'static, crate::state::State>,
|
||||
) -> CosmicStack {
|
||||
let windows = windows.map(Into::into).collect::<Vec<_>>();
|
||||
assert!(!windows.is_empty());
|
||||
|
|
@ -498,7 +498,7 @@ impl CosmicStack {
|
|||
.with_program(|p| p.group_focused.store(true, Ordering::SeqCst));
|
||||
}
|
||||
|
||||
pub(in super::super) fn loop_handle(&self) -> LoopHandle<'static, crate::state::Data> {
|
||||
pub(in super::super) fn loop_handle(&self) -> LoopHandle<'static, crate::state::State> {
|
||||
self.0.loop_handle()
|
||||
}
|
||||
|
||||
|
|
@ -603,7 +603,7 @@ impl Program for CosmicStackInternal {
|
|||
fn update(
|
||||
&mut self,
|
||||
message: Self::Message,
|
||||
loop_handle: &LoopHandle<'static, crate::state::Data>,
|
||||
loop_handle: &LoopHandle<'static, crate::state::State>,
|
||||
) -> Command<Self::Message> {
|
||||
match message {
|
||||
Message::DragStart => {
|
||||
|
|
@ -612,8 +612,8 @@ impl Program for CosmicStackInternal {
|
|||
[self.active.load(Ordering::SeqCst)]
|
||||
.wl_surface()
|
||||
{
|
||||
loop_handle.insert_idle(move |data| {
|
||||
Shell::move_request(&mut data.state, &surface, &seat, serial);
|
||||
loop_handle.insert_idle(move |state| {
|
||||
Shell::move_request(state, &surface, &seat, serial);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -1080,9 +1080,9 @@ impl PointerTarget<State> for CosmicStack {
|
|||
}
|
||||
|
||||
let seat = seat.clone();
|
||||
data.common.event_loop_handle.insert_idle(move |data| {
|
||||
data.common.event_loop_handle.insert_idle(move |state| {
|
||||
seat.get_pointer().unwrap().set_grab(
|
||||
&mut data.state,
|
||||
state,
|
||||
grab,
|
||||
event.serial,
|
||||
smithay::input::pointer::Focus::Clear,
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ use smithay::utils::{Logical, Size};
|
|||
pub type StackHover = IcedElement<StackHoverInternal>;
|
||||
|
||||
pub fn stack_hover(
|
||||
evlh: LoopHandle<'static, crate::state::Data>,
|
||||
evlh: LoopHandle<'static, crate::state::State>,
|
||||
size: Size<i32, Logical>,
|
||||
) -> StackHover {
|
||||
StackHover::new(StackHoverInternal, size, evlh)
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ use smithay::utils::Size;
|
|||
|
||||
pub type SwapIndicator = IcedElement<SwapIndicatorInternal>;
|
||||
|
||||
pub fn swap_indicator(evlh: LoopHandle<'static, crate::state::Data>) -> SwapIndicator {
|
||||
pub fn swap_indicator(evlh: LoopHandle<'static, crate::state::State>) -> SwapIndicator {
|
||||
SwapIndicator::new(SwapIndicatorInternal, Size::from((1, 1)), evlh)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ impl CosmicWindowInternal {
|
|||
impl CosmicWindow {
|
||||
pub fn new(
|
||||
window: impl Into<CosmicSurface>,
|
||||
handle: LoopHandle<'static, crate::state::Data>,
|
||||
handle: LoopHandle<'static, crate::state::State>,
|
||||
) -> CosmicWindow {
|
||||
let window = window.into();
|
||||
let width = window.geometry().size.w;
|
||||
|
|
@ -166,7 +166,7 @@ impl CosmicWindow {
|
|||
}
|
||||
}
|
||||
|
||||
pub(super) fn loop_handle(&self) -> LoopHandle<'static, crate::state::Data> {
|
||||
pub(super) fn loop_handle(&self) -> LoopHandle<'static, crate::state::State> {
|
||||
self.0.loop_handle()
|
||||
}
|
||||
|
||||
|
|
@ -228,14 +228,14 @@ impl Program for CosmicWindowInternal {
|
|||
fn update(
|
||||
&mut self,
|
||||
message: Self::Message,
|
||||
loop_handle: &LoopHandle<'static, crate::state::Data>,
|
||||
loop_handle: &LoopHandle<'static, crate::state::State>,
|
||||
) -> Command<Self::Message> {
|
||||
match message {
|
||||
Message::DragStart => {
|
||||
if let Some((seat, serial)) = self.last_seat.lock().unwrap().clone() {
|
||||
if let Some(surface) = self.window.wl_surface() {
|
||||
loop_handle.insert_idle(move |data| {
|
||||
Shell::move_request(&mut data.state, &surface, &seat, serial);
|
||||
loop_handle.insert_idle(move |state| {
|
||||
Shell::move_request(state, &surface, &seat, serial);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -243,17 +243,11 @@ impl Program for CosmicWindowInternal {
|
|||
Message::Maximize => {
|
||||
if let Some((seat, _serial)) = self.last_seat.lock().unwrap().clone() {
|
||||
if let Some(surface) = self.window.wl_surface() {
|
||||
loop_handle.insert_idle(move |data| {
|
||||
if let Some(mapped) = data
|
||||
.state
|
||||
.common
|
||||
.shell
|
||||
.element_for_wl_surface(&surface)
|
||||
.cloned()
|
||||
loop_handle.insert_idle(move |state| {
|
||||
if let Some(mapped) =
|
||||
state.common.shell.element_for_wl_surface(&surface).cloned()
|
||||
{
|
||||
if let Some(workspace) =
|
||||
data.state.common.shell.space_for_mut(&mapped)
|
||||
{
|
||||
if let Some(workspace) = state.common.shell.space_for_mut(&mapped) {
|
||||
let output = seat.active_output();
|
||||
let (window, _) = mapped
|
||||
.windows()
|
||||
|
|
@ -262,7 +256,7 @@ impl Program for CosmicWindowInternal {
|
|||
workspace.maximize_toggle(
|
||||
&window,
|
||||
&output,
|
||||
data.state.common.event_loop_handle.clone(),
|
||||
state.common.event_loop_handle.clone(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue