Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37718502
en ru br
ALT Linux repos
S:0.10.1-alt1
5.0: 0.3.999-alt1

Group :: Graphical desktop/Other
RPM: lxde-lxpanel

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: lxpanel-taskbar-no-crash.patch
Download


diff --git a/lxpanel/src/plugins/taskbar.c b/lxpanel/src/plugins/taskbar.c
index 68dfcee..23f6dbd 100644
--- a/lxpanel/src/plugins/taskbar.c
+++ b/lxpanel/src/plugins/taskbar.c
@@ -297,6 +297,7 @@ static void task_draw_label(Task * tk)
 {
     TaskClass * tc = tk->res_class;
     gboolean bold_style = (((tk->entered_state) || (tk->flash_state)) && (tk->tb->flat_button));
+    if (!tk->tb) return;
     if ((tk->tb->grouped_tasks) && (tc != NULL) && (tc->visible_task == tk) && (tc->visible_count > 1))
 	{
         char * label = g_strdup_printf("(%d) %s", tc->visible_count, tc->visible_name);
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin