fix: apply default behavior to workspaces which never had a toplevel

This commit is contained in:
Ashley Wulber 2024-05-21 14:34:36 -04:00 • committed by Michael Murphy
parent 5b2bc8eac1
commit 5ae7a29dc7
3 changed files with 110 additions and 12 deletions

View file

@ -1,7 +1,7 @@
// Copyright 2023 System76 <info@system76.com>
// SPDX-License-Identifier: GPL-3.0-only
use crate::wayland::{self};
use crate::wayland::{self, AppRequest};
use cctk::sctk::reexports::calloop::channel::SyncSender;
use cosmic::iced::{
self,
@ -18,7 +18,7 @@ pub static WAYLAND_RX: Lazy<Mutex<Option<mpsc::Receiver<TilingState>>>> =
#[derive(Debug, Clone)]
pub enum WorkspacesUpdate {
State(TilingState),
Started(SyncSender<TilingState>),
Started(SyncSender<AppRequest>),
Errored,
}
@ -74,7 +74,7 @@ pub enum State {
pub struct WorkspacesWatcher {
rx: mpsc::Receiver<TilingState>,
tx: SyncSender<TilingState>,
tx: SyncSender<AppRequest>,
}
impl WorkspacesWatcher {