set alpha based on iconicness in client list menus

This commit is contained in:
Mikael Magnusson 2007-05-29 03:32:04 +00:00
parent 9df3e07b73
commit 5e98d8a452
2 changed files with 4 additions and 0 deletions

View file

@ -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;
} }
} }
} }

View file

@ -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;
} }
} }
} }