mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 10:41:03 +02:00
fix(workspaces): not listening to move event
This commit is contained in:
parent
ea57f5e18d
commit
023c2fb118
1 changed files with 15 additions and 0 deletions
|
@ -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" => {
|
"empty" => {
|
||||||
if let Some(workspace) = event.current {
|
if let Some(workspace) = event.current {
|
||||||
if let Some(item) = button_map.get(&workspace.name) {
|
if let Some(item) = button_map.get(&workspace.name) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue