highlight urgent workspace
This commit is contained in:
@@ -31,7 +31,7 @@ WorkspaceIndicator::~WorkspaceIndicator() {
|
||||
}
|
||||
|
||||
void WorkspaceIndicator::on_workspace_update(int monitorId) {
|
||||
if (monitorId != monitorId && monitorId != -1) {
|
||||
if (this->monitorId != monitorId && monitorId != -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -81,13 +81,13 @@ void WorkspaceIndicator::rebuild() {
|
||||
label->add_controller(gesture);
|
||||
|
||||
if (state != nullptr) {
|
||||
if (state->focused) {
|
||||
label->add_css_class("workspace-pill-focused");
|
||||
} else if (state->active) {
|
||||
label->add_css_class("workspace-pill-active");
|
||||
}
|
||||
|
||||
if (state->urgent) {
|
||||
if (state->urgent != true) {
|
||||
if (state->focused) {
|
||||
label->add_css_class("workspace-pill-focused");
|
||||
} else if (state->active) {
|
||||
label->add_css_class("workspace-pill-active");
|
||||
}
|
||||
} else {
|
||||
label->add_css_class("workspace-pill-urgent");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user