iconcache: Remove want_fallback hint
It's unused, and if it was ever set, it would cause an assert fail.
This commit is contained in:
parent
55354f5c38
commit
a57c3ae105
@ -550,7 +550,6 @@ meta_icon_cache_init (MetaIconCache *icon_cache)
|
||||
icon_cache->ideal_mini_width = -1;
|
||||
icon_cache->ideal_mini_height = -1;
|
||||
#endif
|
||||
icon_cache->want_fallback = TRUE;
|
||||
icon_cache->wm_hints_dirty = TRUE;
|
||||
icon_cache->kwm_win_icon_dirty = TRUE;
|
||||
icon_cache->net_wm_icon_dirty = TRUE;
|
||||
@ -611,13 +610,7 @@ meta_icon_cache_get_icon_invalidated (MetaIconCache *icon_cache)
|
||||
else if (icon_cache->origin <= USING_NET_WM_ICON &&
|
||||
icon_cache->net_wm_icon_dirty)
|
||||
return TRUE;
|
||||
else if (icon_cache->origin < USING_FALLBACK_ICON &&
|
||||
icon_cache->want_fallback)
|
||||
return TRUE;
|
||||
else if (icon_cache->origin == USING_NO_ICON)
|
||||
return TRUE;
|
||||
else if (icon_cache->origin == USING_FALLBACK_ICON &&
|
||||
!icon_cache->want_fallback)
|
||||
else if (icon_cache->origin < USING_FALLBACK_ICON)
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
@ -849,8 +842,7 @@ meta_read_icons (MetaScreen *screen,
|
||||
}
|
||||
}
|
||||
|
||||
if (icon_cache->want_fallback &&
|
||||
icon_cache->origin < USING_FALLBACK_ICON)
|
||||
if (icon_cache->origin < USING_FALLBACK_ICON)
|
||||
{
|
||||
get_fallback_icons (screen,
|
||||
iconp,
|
||||
@ -866,15 +858,6 @@ meta_read_icons (MetaScreen *screen,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (!icon_cache->want_fallback &&
|
||||
icon_cache->origin == USING_FALLBACK_ICON)
|
||||
{
|
||||
/* Get rid of current icon */
|
||||
clear_icon_cache (icon_cache, FALSE);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* found nothing new */
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -44,7 +44,6 @@ struct _MetaIconCache
|
||||
int origin;
|
||||
Pixmap prev_pixmap;
|
||||
Pixmap prev_mask;
|
||||
guint want_fallback : 1;
|
||||
/* TRUE if these props have changed */
|
||||
guint wm_hints_dirty : 1;
|
||||
guint kwm_win_icon_dirty : 1;
|
||||
|
Loading…
Reference in New Issue
Block a user