Taskbar: thumbnails (profiling)
This commit is contained in:
parent
bc4af51e82
commit
3155a5fc89
1 changed files with 3 additions and 0 deletions
|
@ -632,6 +632,9 @@ void task_refresh_thumbnail(Task *task)
|
|||
cairo_surface_destroy(task->thumbnail);
|
||||
task->thumbnail = thumbnail;
|
||||
task->thumbnail_last_update = get_time();
|
||||
if (task->thumbnail_last_update - now > 0.01) {
|
||||
fprintf(stderr, YELLOW "tint2: %s took %f ms (window: %s)" RESET "\n", __func__, 1000 * (task->thumbnail_last_update - now), task->title ? task->title : "");
|
||||
}
|
||||
if (g_tooltip.mapped && (g_tooltip.area == &task->area)) {
|
||||
tooltip_update_contents_for(&task->area);
|
||||
tooltip_update();
|
||||
|
|
Loading…
Reference in a new issue