Bug#1105132: tint2: Add hide_iconified_tasks option
From
Ben Kibbey@21:1/5 to
All on Mon May 12 05:30:01 2025
This is a multi-part MIME message sent by reportbug.
Package: tint2
Version: 17.0.1-1.2
Severity: wishlist
Tags: patch
Dear Maintainer,
Attached is a patch to add hide_iconified_tasks which behaves like hide_inactive_tasks but for iconified windows. I use fvwm and its
IconBox to handle iconified windows and having them in the taskbar is
kinda redundant for me.
-- System Information:
Debian Release: trixie/sid
APT prefers stable-security
APT policy: (999, 'stable-security'), (990, 'testing'), (970, 'unstable') Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.12.25-00001-g74c2bc538b29 (SMP w/8 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages tint2 depends on:
ii libc6 2.41-7
ii libcairo2 1.18.4-1+b1
ii libgdk-pixbuf-2.0-0 2.42.12+dfsg-2
ii libglib2.0-0t64 2.84.1-2
ii libgtk-3-0t64 3.24.49-3
ii libimlib2t64 1.12.4-2
ii libpango-1.0-0 1.56.3-1
ii libpangocairo-1.0-0 1.56.3-1
ii librsvg2-2 2.60.0+dfsg-1
ii libstartup-notification0 0.12-8
ii libx11-6 2:1.8.12-1
ii libxcomposite1 1:0.4.6-1
ii libxdamage1 1:1.1.6-1+b2
ii libxext6 2:1.3.4-1+b3
ii libxinerama1 2:1.1.4-3+b4
ii libxrandr2 2:1.5.4-1+b3
ii libxrender1 1:0.9.12-1
tint2 recommends no packages.
tint2 suggests no packages.
-- no debconf information
diff -ruN tint2-v17.0.1.orig/src/config.c tint2-v17.0.1/src/config.c
--- tint2-v17.0.1.orig/src/config.c 2021-05-29 02:24:56.000000000 -0700
+++ tint2-v17.0.1/src/config.c 2025-05-10 20:59:21.193057543 -0700
@@ -1008,6 +1008,8 @@
taskbarname_active_font.alpha = 0.5;
} else if (strcmp(key, "taskbar_hide_inactive_tasks") == 0) {
hide_inactive_tasks = atoi(value);
+ } else if (strcmp(key, "taskbar_hide_iconified_tasks") == 0) {
+ hide_iconified_tasks = atoi(value);
} else if (strcmp(key, "taskbar_hide_different_monitor") == 0) {
hide_task_diff_monitor = atoi(value);
} else if (strcmp(key, "taskbar_hide_different_desktop") == 0) {
diff -ruN tint2-v17.0.1.orig/src/taskbar/taskbar.c tint2-v17.0.1/src/taskbar/taskbar.c
--- tint2-v17.0.1.orig/src/taskbar/taskbar.c 2021-05-29 02:24:56.000000000 -0700
+++ tint2-v17.0.1/src/taskbar/taskbar.c 2025-05-10 21:00:05.506294467 -0700
@@ -42,6 +42,7 @@
gboolean taskbar_distribute_size;
gboolean hide_task_diff_desktop;
gboolean hide_inactive_tasks;
+gboolean hide_iconifi