Taskbar: thumbnails (config, tint2conf and doc)

This commit is contained in:
o9000
2017-11-14 17:09:04 +01:00
parent e5ecc0c15d
commit 87da8c76cc
13 changed files with 74 additions and 8 deletions

View File

@@ -46,7 +46,7 @@ gboolean hide_taskbar_if_empty;
gboolean always_show_all_desktop_tasks;
TaskbarSortMethod taskbar_sort_method;
Alignment taskbar_alignment;
static timeout *thumbnail_update_timer = NULL;
static timeout *thumbnail_update_timer;
static GList *taskbar_task_orderings = NULL;
@@ -85,6 +85,7 @@ void default_taskbar()
hide_task_diff_monitor = FALSE;
hide_taskbar_if_empty = FALSE;
always_show_all_desktop_tasks = FALSE;
thumbnail_update_timer = NULL;
taskbar_sort_method = TASKBAR_NOSORT;
taskbar_alignment = ALIGN_LEFT;
default_taskbarname();
@@ -362,6 +363,8 @@ void init_taskbar_panel(void *p)
void taskbar_start_thumbnail_timer()
{
if (!panel_config.g_task.thumbnail_enabled)
return;
change_timeout(&thumbnail_update_timer, 100, 10 * 1000, taskbar_update_thumbnails, NULL);
}
@@ -792,6 +795,8 @@ void update_minimized_icon_positions(void *p)
void taskbar_update_thumbnails(void *arg)
{
if (!panel_config.g_task.thumbnail_enabled)
return;
for (int i = 0; i < num_panels; i++) {
Panel *panel = &panels[i];
for (int j = 0; j < panel->num_desktops; j++) {