set alpha based on iconicness in client list menus
This commit is contained in:
parent
9df3e07b73
commit
5e98d8a452
2 changed files with 4 additions and 0 deletions
|
@ -82,6 +82,8 @@ static gboolean self_update(ObMenuFrame *frame, gpointer data)
|
||||||
e->data.normal.icon_width = icon->width;
|
e->data.normal.icon_width = icon->width;
|
||||||
e->data.normal.icon_height = icon->height;
|
e->data.normal.icon_height = icon->height;
|
||||||
e->data.normal.icon_data = icon->data;
|
e->data.normal.icon_data = icon->data;
|
||||||
|
/* 7/16 opacity if iconic */
|
||||||
|
e->data.normal.icon_alpha = c->iconic ? 0x70 : 0xff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,6 +84,8 @@ static gboolean desk_menu_update(ObMenuFrame *frame, gpointer data)
|
||||||
e->data.normal.icon_width = icon->width;
|
e->data.normal.icon_width = icon->width;
|
||||||
e->data.normal.icon_height = icon->height;
|
e->data.normal.icon_height = icon->height;
|
||||||
e->data.normal.icon_data = icon->data;
|
e->data.normal.icon_data = icon->data;
|
||||||
|
/* 7/16 opacity if iconic */
|
||||||
|
e->data.normal.icon_alpha = c->iconic ? 0x70 : 0xff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue