1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-01 02:31:04 +02:00

fix(workspaces): not listening to move event

This commit is contained in:
Jake Stanger 2022-08-24 21:27:19 +01:00
parent ea57f5e18d
commit 023c2fb118
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61

View file

@ -120,6 +120,21 @@ impl Module<gtk::Box> for WorkspacesModule {
}
}
}
"move" => {
if let Some(workspace) = event.current {
if !self.all_monitors {
if workspace.output == output_name {
let item = workspace.as_button(&name_map, &ui_tx);
item.show();
menubar.add(&item);
button_map.insert(workspace.name, item);
} else if let Some(item) = button_map.get(&workspace.name) {
menubar.remove(item);
}
}
}
}
"empty" => {
if let Some(workspace) = event.current {
if let Some(item) = button_map.get(&workspace.name) {