Commit 3155a5fc authored by o9000's avatar o9000

Taskbar: thumbnails (profiling)

parent bc4af51e
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment