diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-21 20:56:37 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-21 20:56:37 +0000 |
| commit | 31f63cb41632b7305d7c019442db30aa199af475 (patch) | |
| tree | c85a7cf57975f90ffea41f055b211e8e0a9a2d4e /openbox | |
| parent | 24a489e8e58333d381533c77a4e0d869e0293fa4 (diff) | |
ok the thumbnails in alt-tab were fun and slow so remove them
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/focus_cycle_popup.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/openbox/focus_cycle_popup.c b/openbox/focus_cycle_popup.c index 07298535..477619f5 100644 --- a/openbox/focus_cycle_popup.c +++ b/openbox/focus_cycle_popup.c @@ -397,7 +397,6 @@ static void popup_render(ObFocusCyclePopup *p, const ObClient *c) they can pick up the hilite changes in the backgroud */ if (!p->mapped || newtarget == target || p->last_target == target) { const ObClientIcon *icon; - ObClientIcon *thumb; const gint row = i / icons_per_row; /* starting from 0 */ const gint col = i % icons_per_row; /* starting from 0 */ gint innerx, innery; @@ -413,27 +412,17 @@ static void popup_render(ObFocusCyclePopup *p, const ObClient *c) innerx, innery, innerw, innerh); /* get the icon from the client */ - if ((thumb = client_thumbnail(target->client, innerw, innerh))) { - p->a_icon->texture[0].data.rgba.width = thumb->width; - p->a_icon->texture[0].data.rgba.height = thumb->height; - p->a_icon->texture[0].data.rgba.alpha = - target->client->iconic ? OB_ICONIC_ALPHA : 0xff; - p->a_icon->texture[0].data.rgba.data = thumb->data; - } else { - icon = client_icon(target->client, innerw, innerh); - p->a_icon->texture[0].data.rgba.width = icon->width; - p->a_icon->texture[0].data.rgba.height = icon->height; - p->a_icon->texture[0].data.rgba.alpha = - target->client->iconic ? OB_ICONIC_ALPHA : 0xff; - p->a_icon->texture[0].data.rgba.data = icon->data; - } + icon = client_icon(target->client, innerw, innerh); + p->a_icon->texture[0].data.rgba.width = icon->width; + p->a_icon->texture[0].data.rgba.height = icon->height; + p->a_icon->texture[0].data.rgba.alpha = + target->client->iconic ? OB_ICONIC_ALPHA : 0xff; + p->a_icon->texture[0].data.rgba.data = icon->data; /* draw the icon */ p->a_icon->surface.parentx = innerx; p->a_icon->surface.parenty = innery; RrPaint(p->a_icon, target->win, innerw, innerh); - - clienticon_free(thumb); } } |
