all repos — tint2 @ e7375a186f516236f339a3afb9e6d934db0243ff

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Fix startup notification issue
o9000 mrovi9000@gmail.com
commit

e7375a186f516236f339a3afb9e6d934db0243ff

parent

8917a4d15b15a06915bf6a4a52d90271675568a9

1 files changed, 7 insertions(+), 5 deletions(-)

jump to
M src/tint.csrc/tint.c

@@ -527,11 +527,13 @@ pid_t pid;

int status; while ((pid = waitpid(-1, &status, WNOHANG)) != -1 && pid != 0) { #ifdef HAVE_SN - SnLauncherContext *ctx = (SnLauncherContext *)g_tree_lookup(server.pids, GINT_TO_POINTER(pid)); - if (ctx) { - g_tree_remove(server.pids, GINT_TO_POINTER(pid)); - sn_launcher_context_complete(ctx); - sn_launcher_context_unref(ctx); + if (startup_notifications) { + SnLauncherContext *ctx = (SnLauncherContext *)g_tree_lookup(server.pids, GINT_TO_POINTER(pid)); + if (ctx) { + g_tree_remove(server.pids, GINT_TO_POINTER(pid)); + sn_launcher_context_complete(ctx); + sn_launcher_context_unref(ctx); + } } #endif for (GList *l = panel_config.execp_list; l; l = l->next) {