From 5e98d8a4523b41ff29adac675ec40f8e8699fcec Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Tue, 29 May 2007 03:32:04 +0000 Subject: [PATCH] set alpha based on iconicness in client list menus --- openbox/client_list_combined_menu.c | 2 ++ openbox/client_list_menu.c | 2 ++ 2 files changed, 4 insertions(+) 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; } } } -- 2.45.2