aboutsummaryrefslogtreecommitdiff
path: root/osc.c
diff options
context:
space:
mode:
Diffstat (limited to 'osc.c')
-rw-r--r--osc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/osc.c b/osc.c
index aeb7896c..63b66dd7 100644
--- a/osc.c
+++ b/osc.c
@@ -558,9 +558,10 @@ osc_notify(struct terminal *term, char *string)
}
notify_notify(term, &(struct notification){
- .title = (char *)title,
- .body = (char *)msg,
+ .title = xstrdup(title),
+ .body = xstrdup(msg),
.expire_time = -1,
+ .focus = true,
});
}