Taskbar: thumbnails (profiling)
This commit is contained in:
@@ -632,6 +632,9 @@ void task_refresh_thumbnail(Task *task)
|
|||||||
cairo_surface_destroy(task->thumbnail);
|
cairo_surface_destroy(task->thumbnail);
|
||||||
task->thumbnail = thumbnail;
|
task->thumbnail = thumbnail;
|
||||||
task->thumbnail_last_update = get_time();
|
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)) {
|
if (g_tooltip.mapped && (g_tooltip.area == &task->area)) {
|
||||||
tooltip_update_contents_for(&task->area);
|
tooltip_update_contents_for(&task->area);
|
||||||
tooltip_update();
|
tooltip_update();
|
||||||
|
|||||||
Reference in New Issue
Block a user