Fixed bug that would cause icon based workspaces indicator to not update properly.
This commit is contained in:
@@ -64,6 +64,7 @@ const Workspaces = (monitor = -1, ws = 8) => {
|
||||
options.bar.workspaces.icons.available.bind("value"),
|
||||
options.bar.workspaces.icons.active.bind("value"),
|
||||
options.bar.workspaces.icons.occupied.bind("value"),
|
||||
hyprland.active.workspace.bind("id")
|
||||
],
|
||||
(show_icons) => {
|
||||
if (show_icons) {
|
||||
@@ -78,8 +79,9 @@ const Workspaces = (monitor = -1, ws = 8) => {
|
||||
options.bar.workspaces.icons.available.bind("value"),
|
||||
options.bar.workspaces.icons.active.bind("value"),
|
||||
options.bar.workspaces.icons.occupied.bind("value"),
|
||||
hyprland.active.workspace.bind("id")
|
||||
],
|
||||
(showIcons, available, active, occupied) => {
|
||||
(showIcons, available, active, occupied, _) => {
|
||||
if (showIcons) {
|
||||
if (hyprland.active.workspace.id === i) {
|
||||
return active;
|
||||
@@ -88,8 +90,7 @@ const Workspaces = (monitor = -1, ws = 8) => {
|
||||
return occupied;
|
||||
}
|
||||
if (
|
||||
monitor !== -1 &&
|
||||
hyprland.getWorkspace(i)?.monitorID !== monitor
|
||||
monitor !== -1
|
||||
) {
|
||||
return available;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user