]> Dogcows Code - chaz/openbox/commitdiff
set alpha based on iconicness in client list menus
authorMikael Magnusson <mikachu@comhem.se>
Tue, 29 May 2007 03:32:04 +0000 (03:32 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Tue, 29 May 2007 03:32:04 +0000 (03:32 +0000)
openbox/client_list_combined_menu.c
openbox/client_list_menu.c

index 52ebce43b28a336e0a0ad3c505d928f1c6a705fb..b61efcef3041fedfef6cbd1728a3857edc03d555 100644 (file)
@@ -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;
                 }
             }
         }
index 82716c3c92b3a224b816deaa00de81e18e0300b1..cc8198752a631b08f589f4d0a8fb1db9aeb712c1 100644 (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_height = icon->height;
                 e->data.normal.icon_data = icon->data;
+                /* 7/16 opacity if iconic */
+                e->data.normal.icon_alpha = c->iconic ? 0x70 : 0xff;
             }
         }
     }
This page took 0.024175 seconds and 4 git commands to generate.