when scrolling, all the items need to be redrawn to make parentrelative work
This commit is contained in:
parent
b097f84dfd
commit
0369732c35
1 changed files with 36 additions and 46 deletions
|
@ -513,15 +513,6 @@ static void popup_render(ObFocusCyclePopup *p, const ObClient *c)
|
||||||
XMapWindow(obt_display, target->iconwin);
|
XMapWindow(obt_display, target->iconwin);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* only draw if we have to */
|
|
||||||
if (!p->mapped ||
|
|
||||||
newtarget == target || p->last_target == target ||
|
|
||||||
/* wasn't visible before... */
|
|
||||||
((row + p->scroll < last_scroll ||
|
|
||||||
row + p->scroll >= last_scroll + icon_rows) &&
|
|
||||||
/* ...and is visible now */
|
|
||||||
(row >= 0 && row < icon_rows)))
|
|
||||||
{
|
|
||||||
/* get the icon from the client */
|
/* get the icon from the client */
|
||||||
icon = client_icon(target->client, ICON_SIZE, ICON_SIZE);
|
icon = client_icon(target->client, ICON_SIZE, ICON_SIZE);
|
||||||
p->a_icon->texture[0].data.rgba.width = icon->width;
|
p->a_icon->texture[0].data.rgba.width = icon->width;
|
||||||
|
@ -562,7 +553,6 @@ static void popup_render(ObFocusCyclePopup *p, const ObClient *c)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
p->last_target = newtarget;
|
p->last_target = newtarget;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue