From: Mikael Magnusson Date: Tue, 29 May 2007 03:32:04 +0000 (+0000) Subject: set alpha based on iconicness in client list menus X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=5e98d8a4523b41ff29adac675ec40f8e8699fcec;p=chaz%2Fopenbox set alpha based on iconicness in client list menus --- diff --git a/openbox/client_list_combined_menu.c b/openbox/client_list_combined_menu.c index 52ebce43..b61efcef 100644 --- a/openbox/client_list_combined_menu.c +++ b/openbox/client_list_combined_menu.c @@ -82,6 +82,8 @@ static gboolean self_update(ObMenuFrame *frame, gpointer data) e->data.normal.icon_width = icon->width; e->data.normal.icon_height = icon->height; e->data.normal.icon_data = icon->data; + /* 7/16 opacity if iconic */ + e->data.normal.icon_alpha = c->iconic ? 0x70 : 0xff; } } } diff --git a/openbox/client_list_menu.c b/openbox/client_list_menu.c index 82716c3c..cc819875 100644 --- a/openbox/client_list_menu.c +++ b/openbox/client_list_menu.c @@ -84,6 +84,8 @@ static gboolean desk_menu_update(ObMenuFrame *frame, gpointer data) e->data.normal.icon_width = icon->width; e->data.normal.icon_height = icon->height; e->data.normal.icon_data = icon->data; + /* 7/16 opacity if iconic */ + e->data.normal.icon_alpha = c->iconic ? 0x70 : 0xff; } } }