mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 04:20:27 +01:00
wIconUpdate removed scr variable
The variable scr is not used, so MUST be removed. This variable can cause a segfault because icon could not exist.
This commit is contained in:
committed by
Carlos R. Mafra
parent
d8b92c979e
commit
2eb1107e20
@@ -601,11 +601,8 @@ static void unset_icon_image(WIcon *icon)
|
||||
|
||||
void wIconUpdate(WIcon *icon)
|
||||
{
|
||||
WScreen *scr = icon->core->screen_ptr;
|
||||
WWindow *wwin = icon->owner;
|
||||
|
||||
assert(scr->icon_tile != NULL);
|
||||
|
||||
if (wwin && WFLAGP(wwin, always_user_icon)) {
|
||||
/* Forced use user_icon */
|
||||
get_rimage_icon_from_user_icon(icon);
|
||||
|
||||
Reference in New Issue
Block a user