Fix startup notification issue
This commit is contained in:
parent
8917a4d15b
commit
e7375a186f
1 changed files with 7 additions and 5 deletions
12
src/tint.c
12
src/tint.c
|
@ -527,11 +527,13 @@ static void sigchld_handler_async()
|
||||||
int status;
|
int status;
|
||||||
while ((pid = waitpid(-1, &status, WNOHANG)) != -1 && pid != 0) {
|
while ((pid = waitpid(-1, &status, WNOHANG)) != -1 && pid != 0) {
|
||||||
#ifdef HAVE_SN
|
#ifdef HAVE_SN
|
||||||
SnLauncherContext *ctx = (SnLauncherContext *)g_tree_lookup(server.pids, GINT_TO_POINTER(pid));
|
if (startup_notifications) {
|
||||||
if (ctx) {
|
SnLauncherContext *ctx = (SnLauncherContext *)g_tree_lookup(server.pids, GINT_TO_POINTER(pid));
|
||||||
g_tree_remove(server.pids, GINT_TO_POINTER(pid));
|
if (ctx) {
|
||||||
sn_launcher_context_complete(ctx);
|
g_tree_remove(server.pids, GINT_TO_POINTER(pid));
|
||||||
sn_launcher_context_unref(ctx);
|
sn_launcher_context_complete(ctx);
|
||||||
|
sn_launcher_context_unref(ctx);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
for (GList *l = panel_config.execp_list; l; l = l->next) {
|
for (GList *l = panel_config.execp_list; l; l = l->next) {
|
||||||
|
|
Loading…
Reference in a new issue