Taskbar: thumbnails (profiling)
o9000 mrovi9000@gmail.com
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
src/taskbar/task.c
→
src/taskbar/task.c
@@ -632,6 +632,9 @@ if (task->thumbnail)
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();