assorted fixes

This commit is contained in:
stjet
2025-03-07 06:28:22 +00:00
parent 9eb9ace77f
commit e4ab8c4127
12 changed files with 78 additions and 36 deletions

View File

@@ -60,7 +60,7 @@ pub fn listen(mut window_like: impl WindowLike) {
format!("{}", &window_like.handle_message(WindowMessage::deserialize(arg).unwrap()).serialize())
},
"draw" => {
format!("{}", &window_like.draw(&ThemeInfo::deserialize(arg).unwrap()).serialize())
format!("{}", &window_like.draw(&ThemeInfo::deserialize(arg).unwrap()).serialize().replace("\n", ""))
},
"title" => {
format!("{}", window_like.title())

View File

@@ -85,6 +85,7 @@ pub enum ShortcutType {
pub type WindowsVec = Vec<(usize, String)>;
#[non_exhaustive]
pub enum InfoType {
//let taskbar know what the current windows in the workspace are
WindowsInWorkspace(WindowsVec, usize), //Vec<(id, name)>, focused id